[llvm] 6f9f4fd - CodeGen: Add missing MachineOperand setter

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 30 12:30:12 PDT 2020


Author: Matt Arsenault
Date: 2020-03-30T15:27:17-04:00
New Revision: 6f9f4fdd5b0c383e9abebba983360e8f2294f703

URL: https://github.com/llvm/llvm-project/commit/6f9f4fdd5b0c383e9abebba983360e8f2294f703
DIFF: https://github.com/llvm/llvm-project/commit/6f9f4fdd5b0c383e9abebba983360e8f2294f703.diff

LOG: CodeGen: Add missing MachineOperand setter

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/MachineOperand.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h
index 9ba2b01cb4bd..ac1a4d1b2bc5 100644
--- a/llvm/include/llvm/CodeGen/MachineOperand.h
+++ b/llvm/include/llvm/CodeGen/MachineOperand.h
@@ -698,6 +698,11 @@ class MachineOperand {
     Contents.RegMask = RegMaskPtr;
   }
 
+  void setIntrinsicID(Intrinsic::ID IID) {
+    assert(isIntrinsicID() && "Wrong MachineOperand mutator");
+    Contents.IntrinsicID = IID;
+  }
+
   void setPredicate(unsigned Predicate) {
     assert(isPredicate() && "Wrong MachineOperand mutator");
     Contents.Pred = Predicate;


        


More information about the llvm-commits mailing list