+public:
+ static ExtractElementInst *Create(const ExtractElementInst &EE) {
+ return new(EE.getNumOperands()) ExtractElementInst(EE);
+ }
+
+ static ExtractElementInst *Create(Value *Vec, Value *Idx,
+ const std::string &NameStr = "",
+ Instruction *InsertBefore = 0) {
+ return new(2) ExtractElementInst(Vec, Idx, NameStr, InsertBefore);
+ }
+ static ExtractElementInst *Create(Value *Vec, Value *Idx,
+ const std::string &NameStr,
+ BasicBlock *InsertAtEnd) {
+ return new(2) ExtractElementInst(Vec, Idx, NameStr, InsertAtEnd);
+ }