Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 20 additions & 18 deletions llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ class VSETVLIInfo {
/// Implement operator<<.
/// @{
void print(raw_ostream &OS) const {
OS << "{";
OS << '{';
switch (State) {
case AVLState::Uninitialized:
OS << "Uninitialized";
Expand All @@ -855,24 +855,26 @@ class VSETVLIInfo {
OS << "AVLVLMAX";
break;
}
OS << ", ";
if (State != Uninitialized && State != Unknown) {
OS << ", ";

unsigned LMul;
bool Fractional;
std::tie(LMul, Fractional) = decodeVLMUL(VLMul);

OS << "VLMul=m";
if (Fractional)
OS << 'f';
OS << LMul << ", "
<< "SEW=e" << (unsigned)SEW << ", "
<< "TailAgnostic=" << (bool)TailAgnostic << ", "
<< "MaskAgnostic=" << (bool)MaskAgnostic << ", "
<< "SEWLMULRatioOnly=" << (bool)SEWLMULRatioOnly << ", "
<< "TWiden=" << (unsigned)TWiden << ", "
<< "AltFmt=" << (bool)AltFmt;
}

unsigned LMul;
bool Fractional;
std::tie(LMul, Fractional) = decodeVLMUL(VLMul);

OS << "VLMul=";
if (Fractional)
OS << "mf";
else
OS << "m";
OS << LMul << ", "
<< "SEW=e" << (unsigned)SEW << ", "
<< "TailAgnostic=" << (bool)TailAgnostic << ", "
<< "MaskAgnostic=" << (bool)MaskAgnostic << ", "
<< "SEWLMULRatioOnly=" << (bool)SEWLMULRatioOnly << ", "
<< "TWiden=" << (unsigned)TWiden << ", "
<< "AltFmt=" << (bool)AltFmt << "}";
OS << '}';
}
#endif
};
Expand Down
Loading