reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Constants.h
 1131   static Constant *get(unsigned Opcode, Constant *C1, Constant *C2,

References

include/llvm/Analysis/TargetFolder.h
  109     return Fold(ConstantExpr::get(Opc, LHS, RHS));
include/llvm/IR/ConstantFolder.h
  117     return ConstantExpr::get(Opc, LHS, RHS);
lib/Analysis/BranchProbabilityInfo.cpp
  552         CmpLHSConst = ConstantExpr::get(I->getOpcode(), CmpLHSConst,
lib/Analysis/ConstantFolding.cpp
 1304   return ConstantExpr::get(Opcode, LHS, RHS);
lib/Analysis/ScalarEvolutionExpander.cpp
  175       return ConstantExpr::get(Opcode, CLHS, CRHS);
lib/AsmParser/LLParser.cpp
 3512     Constant *C = ConstantExpr::get(Opc, Val0, Val1, Flags);
 3536     ID.ConstantVal = ConstantExpr::get(Opc, Val0, Val1);
lib/Bitcode/Reader/BitcodeReader.cpp
 2558         V = ConstantExpr::get(Opc, LHS, RHS, Flags);
lib/IR/ConstantFold.cpp
 1216       return ConstantExpr::get(Opcode, C2, C1);
 1320       Result.push_back(ConstantExpr::get(Opcode, LHS, RHS));
 1334       Constant *T = ConstantExpr::get(Opcode, CE1->getOperand(1), C2);
 1336         return ConstantExpr::get(Opcode, CE1->getOperand(0), T);
 2277             Combined = ConstantExpr::get(Instruction::Add, C1, C2);
 2280               ConstantExpr::get(Instruction::Add, Idx0, Combined);
lib/IR/Constants.cpp
 1289     return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData,
 2247   return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType()));
 2254   return get(Instruction::Add, C1, C2, Flags);
 2258   return get(Instruction::FAdd, C1, C2);
 2265   return get(Instruction::Sub, C1, C2, Flags);
 2269   return get(Instruction::FSub, C1, C2);
 2276   return get(Instruction::Mul, C1, C2, Flags);
 2280   return get(Instruction::FMul, C1, C2);
 2284   return get(Instruction::UDiv, C1, C2,
 2289   return get(Instruction::SDiv, C1, C2,
 2294   return get(Instruction::FDiv, C1, C2);
 2298   return get(Instruction::URem, C1, C2);
 2302   return get(Instruction::SRem, C1, C2);
 2306   return get(Instruction::FRem, C1, C2);
 2310   return get(Instruction::And, C1, C2);
 2314   return get(Instruction::Or, C1, C2);
 2318   return get(Instruction::Xor, C1, C2);
 2325   return get(Instruction::Shl, C1, C2, Flags);
 2329   return get(Instruction::LShr, C1, C2,
 2334   return get(Instruction::AShr, C1, C2,
lib/Transforms/InstCombine/InstCombineShifts.cpp
  767           Constant *NewRHS = ConstantExpr::get(I.getOpcode(),
  784         Constant *NewRHS = ConstantExpr::get(I.getOpcode(),
  811         Constant *NewRHS = ConstantExpr::get(I.getOpcode(),
  830         Constant *NewRHS = ConstantExpr::get(I.getOpcode(),
lib/Transforms/InstCombine/InstructionCombining.cpp
  287   Constant *FoldedC = ConstantExpr::get(AssocOpcode, C1, CastC2);
  454         I.setOperand(1, ConstantExpr::get(Opcode, C1, C2));
  840       return ConstantExpr::get(I.getOpcode(), SOC, ConstOperand);
  841     return ConstantExpr::get(I.getOpcode(), ConstOperand, SOC);
  914       return ConstantExpr::get(I->getOpcode(), InC, C);
  915     return ConstantExpr::get(I->getOpcode(), C, InC);
 1535             ConstOp1 ? ConstantExpr::get(Opcode, UndefScalar, CElt)
 1536                      : ConstantExpr::get(Opcode, CElt, UndefScalar);
lib/Transforms/Scalar/JumpThreading.cpp
  757         Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
lib/Transforms/Scalar/Reassociate.cpp
 1841     Cst = Cst ? ConstantExpr::get(Opcode, C, Cst) : C;
lib/Transforms/Scalar/SCCP.cpp
 1007     Constant *C = ConstantExpr::get(I.getOpcode(), V1State.getConstant(),
lib/Transforms/Utils/Evaluator.cpp
  399       InstResult = ConstantExpr::get(BO->getOpcode(),
unittests/IR/ConstantsTest.cpp
  496   bool result = ConstantExpr::get(Instruction::And, TheConstantExpr,
  584   ASSERT_TRUE(ConstantExpr::get( \