Home | History | Annotate | Download | only in IR

Lines Matching refs:Op

115   Op<-1>().set(nullptr);
134 if (NumOps < 2) NumOps = 2; // 2 op PHI nodes are VERY common.
253 Op<-1>() = Func;
279 Op<-1>() = Func;
643 Op<-3>() = Fn;
644 Op<-2>() = IfNormal;
645 Op<-1>() = IfException;
812 Op<0>() = RI.Op<0>();
821 Op<0>() = retVal;
828 Op<0>() = retVal;
859 Op<0>() = RI.Op<0>();
865 Op<0>() = Exn;
871 Op<0>() = Exn;
896 Op<0>() = CRI.Op<0>();
898 Op<1>() = CRI.Op<1>();
905 Op<0>() = CleanupPad;
907 Op<1>() = UnwindBB;
944 Op<0>() = CatchPad;
945 Op<1>() = BB;
951 Op<0>() = CRI.Op<0>();
952 Op<1>() = CRI.Op<1>();
1029 Op<0>() = ParentPad;
1096 FuncletPadInst::FuncletPadInst(Instruction::FuncletPadOps Op, Value *ParentPad,
1099 : Instruction(ParentPad->getType(), Op,
1105 FuncletPadInst::FuncletPadInst(Instruction::FuncletPadOps Op, Value *ParentPad,
1108 : Instruction(ParentPad->getType(), Op,
1155 Op<-1>() = IfTrue;
1162 Op<-1>() = IfTrue;
1163 Op<-2>() = IfFalse;
1164 Op<-3>() = Cond;
1175 Op<-1>() = IfTrue;
1183 Op<-1>() = IfTrue;
1184 Op<-2>() = IfFalse;
1185 Op<-3>() = Cond;
1196 Op<-1>() = BI.Op<-1>();
1199 Op<-3>() = BI.Op<-3>();
1200 Op<-2>() = BI.Op<-2>();
1208 Op<-1>().swap(Op<-2>());
1473 Op<0>() = val;
1474 Op<1>() = addr;
1489 Op<0>() = val;
1490 Op<1>() = addr;
1514 Op<0>() = Ptr;
1515 Op<1>() = Cmp;
1516 Op<2>() = NewVal;
1576 Op<0>() = Ptr;
1577 Op<1>() = Val;
1645 Op<0>() = Ptr;
1757 Op<0>() = Val;
1758 Op<1>() = Index;
1772 Op<0>() = Val;
1773 Op<1>() = Index;
1797 Op<0>() = Vec;
1798 Op<1>() = Elt;
1799 Op<2>() = Index;
1812 Op<0>() = Vec;
1813 Op<1>() = Elt;
1814 Op<2>() = Index;
1847 Op<0>() = V1;
1848 Op<1>() = V2;
1849 Op<2>() = Mask;
1865 Op<0>() = V1;
1866 Op<1>() = V2;
1867 Op<2>() = Mask;
1888 for (Value *Op : MV->operands()) {
1889 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op)) {
1892 } else if (!isa<UndefValue>(Op)) {
1967 Op<0>() = Agg;
1968 Op<1>() = Val;
1978 Op<0>() = IVI.getOperand(0);
1979 Op<1>() = IVI.getOperand(1);
2046 Op<0>() = S1;
2047 Op<1>() = S2;
2059 Op<0>() = S1;
2060 Op<1>() = S2;
2141 BinaryOperator *BinaryOperator::Create(BinaryOps Op, Value *S1, Value *S2,
2146 return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore);
2149 BinaryOperator *BinaryOperator::Create(BinaryOps Op, Value *S1, Value *S2,
2152 BinaryOperator *Res = Create(Op, S1, S2, Name);
2157 BinaryOperator *BinaryOperator::CreateNeg(Value *Op, const Twine &Name,
2159 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2161 zero, Op,
2162 Op->getType(), Name, InsertBefore);
2165 BinaryOperator *BinaryOperator::CreateNeg(Value *Op, const Twine &Name,
2167 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2169 zero, Op,
2170 Op->getType(), Name, InsertAtEnd);
2173 BinaryOperator *BinaryOperator::CreateNSWNeg(Value *Op, const Twine &Name,
2175 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2176 return BinaryOperator::CreateNSWSub(zero, Op, Name, InsertBefore);
2179 BinaryOperator *BinaryOperator::CreateNSWNeg(Value *Op, const Twine &Name,
2181 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2182 return BinaryOperator::CreateNSWSub(zero, Op, Name, InsertAtEnd);
2185 BinaryOperator *BinaryOperator::CreateNUWNeg(Value *Op, const Twine &Name,
2187 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2188 return BinaryOperator::CreateNUWSub(zero, Op, Name, InsertBefore);
2191 BinaryOperator *BinaryOperator::CreateNUWNeg(Value *Op, const Twine &Name,
2193 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2194 return BinaryOperator::CreateNUWSub(zero, Op, Name, InsertAtEnd);
2197 BinaryOperator *BinaryOperator::CreateFNeg(Value *Op, const Twine &Name,
2199 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2200 return new BinaryOperator(Instruction::FSub, zero, Op,
2201 Op->getType(), Name, InsertBefore);
2204 BinaryOperator *BinaryOperator::CreateFNeg(Value *Op, const Twine &Name,
2206 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2207 return new BinaryOperator(Instruction::FSub, zero, Op,
2208 Op->getType(), Name, InsertAtEnd);
2211 BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
2213 Constant *C = Constant::getAllOnesValue(Op->getType());
2214 return new BinaryOperator(Instruction::Xor, Op, C,
2215 Op->getType(), Name, InsertBefore);
2218 BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
2220 Constant *AllOnes = Constant::getAllOnesValue(Op->getType());
2221 return new BinaryOperator(Instruction::Xor, Op, AllOnes,
2222 Op->getType(), Name, InsertAtEnd);
2300 Op<0>().swap(Op<1>());
2361 /// no code gen is necessary for the cast, hence the name no-op cast. For
2362 /// example, the following are all no-op casts:
2366 /// @brief Determine if the described cast is a no-op.
2396 /// @brief Determine if a cast is a no-op.
2506 // No-op cast in second op implies firstOp as long as the DestTy
2513 // No-op cast in second op implies firstOp as long as the DestTy
2519 // No-op cast in first op implies secondOp as long as the SrcTy
2525 // No-op cast in first op implies secondOp as long as the SrcTy
2646 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty,
2648 assert(castIsValid(op, S, Ty) && "Invalid cast!");
2650 switch (op) {
2668 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty,
2670 assert(castIsValid(op, S, Ty) && "Invalid cast!");
2672 switch (op) {
3016 return BitCast; // Same size, No-op cast
3026 return BitCast; // Same size, no-op cast
3044 return BitCast; // same size, no-op cast
3049 return BitCast; // same size, no-op cast
3084 CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
3106 switch (op) {
3151 // BitCast implies a no-op cast of type only. No bits change.
3360 CmpInst::CmpInst(Type *ty, OtherOps op, Predicate predicate, Value *LHS,
3362 : Instruction(ty, op,
3366 Op<0>() = LHS;
3367 Op<1>() = RHS;
3372 CmpInst::CmpInst(Type *ty, OtherOps op, Predicate predicate, Value *LHS,
3374 : Instruction(ty, op,
3378 Op<0>() = LHS;
3379 Op<1>() = RHS;
3385 CmpInst::Create(OtherOps Op, Predicate predicate, Value *S1, Value *S2,
3387 if (Op == Instruction::ICmp) {
3405 CmpInst::Create(OtherOps Op, Predicate predicate, Value *S1, Value *S2,
3407 if (Op == Instruction::ICmp) {
3695 Op<0>() = Value;
3696 Op<1>() = Default;
3805 Op<0>() = Address;
3895 return Create(getOpcode(), Op<0>(), Op<1>());
3899 return new FCmpInst(getPredicate(), Op<0>(), Op<1>());
3903 return new ICmpInst(getPredicate(), Op<0>(), Op<1>());