Skip to content
Merged
Changes from all 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
36 changes: 30 additions & 6 deletions llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,12 +607,36 @@ class VSETVLIInfo {
}
}

unsigned getSEW() const { return SEW; }
RISCVVType::VLMUL getVLMUL() const { return VLMul; }
bool getTailAgnostic() const { return TailAgnostic; }
bool getMaskAgnostic() const { return MaskAgnostic; }
bool getAltFmt() const { return AltFmt; }
unsigned getTWiden() const { return TWiden; }
unsigned getSEW() const {
assert(isValid() && !isUnknown() &&
"Can't use VTYPE for uninitialized or unknown");
return SEW;
}
RISCVVType::VLMUL getVLMUL() const {
assert(isValid() && !isUnknown() &&
"Can't use VTYPE for uninitialized or unknown");
return VLMul;
}
bool getTailAgnostic() const {
assert(isValid() && !isUnknown() &&
"Can't use VTYPE for uninitialized or unknown");
return TailAgnostic;
}
bool getMaskAgnostic() const {
assert(isValid() && !isUnknown() &&
"Can't use VTYPE for uninitialized or unknown");
return MaskAgnostic;
}
bool getAltFmt() const {
assert(isValid() && !isUnknown() &&
"Can't use VTYPE for uninitialized or unknown");
return AltFmt;
}
unsigned getTWiden() const {
assert(isValid() && !isUnknown() &&
"Can't use VTYPE for uninitialized or unknown");
return TWiden;
}

bool hasNonZeroAVL(const LiveIntervals *LIS) const {
if (hasAVLImm())
Expand Down