[llvm] GlobalISel/MachineIRBuilder: Construct DstOp with VRegAttrs (PR #113581)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 25 15:43:41 PDT 2024
================
@@ -122,6 +132,15 @@ class DstOp {
}
}
+ MachineRegisterInfo::VRegAttrs getVRegAttrs() const {
+ switch (Ty) {
+ case DstType::Ty_VRegAttrs:
+ return Attrs;
+ default:
+ llvm_unreachable("Not a VRegAttrs Operand");
+ }
----------------
arsenm wrote:
assert + return? This will only ever handle one case
https://github.com/llvm/llvm-project/pull/113581
More information about the llvm-commits
mailing list