Lines Matching full:instruction
33 /// 'InsertHelper' method that is called whenever an instruction is created by
36 /// By default, this inserts the instruction at the insertion point.
40 void InsertHelper(Instruction *I, const Twine &Name,
85 /// the specified instruction.
86 void SetInsertPoint(Instruction *I) {
103 Instruction *UseInst = cast<Instruction>(U.getUser());
122 /// specified instruction.
123 void SetInstDebugLocation(Instruction *I) const {
286 /// specified, it will be added to the instruction.
298 /// specified, it will be added to the instruction.
314 /// specified, it will be added to the instruction.
342 /// instructions. For access to extra instruction properties, use the mutators
348 /// final instruction output. This defaults to on. The second template argument
382 explicit IRBuilder(Instruction *IP, MDNode *FPMathTag = 0)
393 SetCurrentDebugLocation(cast<Instruction>(U.getUser())->getDebugLoc());
431 /// \brief Insert and return the specified instruction.
445 // Instruction creation methods: Terminators
449 /// \brief Helper to add branch weight metadata onto an instruction.
450 /// \returns The annotated instruction.
459 /// \brief Create a 'ret void' instruction.
464 /// \brief Create a 'ret <val>' instruction.
471 /// return value one value at a time, and a ret instruction to return
483 /// \brief Create an unconditional 'br label X' instruction.
489 /// instruction.
496 /// \brief Create a switch instruction with the specified value, default dest,
505 /// \brief Create an indirect branch instruction with the specified address
532 /// \brief Create an invoke instruction.
549 // Instruction creation methods: Binary Operators
562 Instruction *AddFPMathAttributes(Instruction *I,
578 return CreateInsertNUWNSWBinOp(Instruction::Add, LHS, RHS, Name,
600 return CreateInsertNUWNSWBinOp(Instruction::Sub, LHS, RHS, Name,
622 return CreateInsertNUWNSWBinOp(Instruction::Mul, LHS, RHS, Name,
697 return CreateInsertNUWNSWBinOp(Instruction::Shl, LHS, RHS, Name,
792 Value *CreateBinOp(Instruction::BinaryOps Opc,
828 // Instruction
1023 // Instruction creation methods: Cast/Conversion Operators
1027 return CreateCast(Instruction::Trunc, V, DestTy, Name);
1030 return CreateCast(Instruction::ZExt, V, DestTy, Name);
1033 return CreateCast(Instruction::SExt, V, DestTy, Name);
1064 return CreateCast(Instruction::FPToUI, V, DestTy, Name);
1067 return CreateCast(Instruction::FPToSI, V, DestTy, Name);
1070 return CreateCast(Instruction::UIToFP, V, DestTy, Name);
1073 return CreateCast(Instruction::SIToFP, V, DestTy, Name);
1077 return CreateCast(Instruction::FPTrunc, V, DestTy, Name);
1080 return CreateCast(Instruction::FPExt, V, DestTy, Name);
1084 return CreateCast(Instruction::PtrToInt, V, DestTy, Name);
1088 return CreateCast(Instruction::IntToPtr, V, DestTy, Name);
1092 return CreateCast(Instruction::BitCast, V, DestTy, Name);
1118 Value *CreateCast(Instruction::CastOps Op, Value *V, Type *DestTy,
1157 // Instruction creation methods: Compare Instructions
1250 // Instruction creation methods: Other Instructions