[llvm-commits] CVS: llvm/include/llvm/Instructions.h

Chris Lattner sabre at nondot.org
Wed Oct 4 23:25:12 PDT 2006



Changes in directory llvm/include/llvm:

Instructions.h updated: 1.43 -> 1.44
---
Log message:

Add insertelement/extractelement helper ctors.


---
Diffs of the changes:  (+8 -0)

 Instructions.h |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/include/llvm/Instructions.h
diff -u llvm/include/llvm/Instructions.h:1.43 llvm/include/llvm/Instructions.h:1.44
--- llvm/include/llvm/Instructions.h:1.43	Tue Oct  3 12:09:12 2006
+++ llvm/include/llvm/Instructions.h	Thu Oct  5 01:24:58 2006
@@ -775,8 +775,12 @@
 public:
   ExtractElementInst(Value *Vec, Value *Idx, const std::string &Name = "",
                      Instruction *InsertBefore = 0);
+  ExtractElementInst(Value *Vec, unsigned Idx, const std::string &Name = "",
+                     Instruction *InsertBefore = 0);
   ExtractElementInst(Value *Vec, Value *Idx, const std::string &Name,
                      BasicBlock *InsertAtEnd);
+  ExtractElementInst(Value *Vec, unsigned Idx, const std::string &Name,
+                     BasicBlock *InsertAtEnd);
 
   /// isValidOperands - Return true if an extractelement instruction can be
   /// formed with the specified operands.
@@ -820,8 +824,12 @@
 public:
   InsertElementInst(Value *Vec, Value *NewElt, Value *Idx,
                     const std::string &Name = "",Instruction *InsertBefore = 0);
+  InsertElementInst(Value *Vec, Value *NewElt, unsigned Idx,
+                    const std::string &Name = "",Instruction *InsertBefore = 0);
   InsertElementInst(Value *Vec, Value *NewElt, Value *Idx,
                     const std::string &Name, BasicBlock *InsertAtEnd);
+  InsertElementInst(Value *Vec, Value *NewElt, unsigned Idx,
+                    const std::string &Name, BasicBlock *InsertAtEnd);
 
   /// isValidOperands - Return true if an insertelement instruction can be
   /// formed with the specified operands.






More information about the llvm-commits mailing list