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

Declarations

include/llvm/IR/Constants.h
 1049   static Constant *getCast(unsigned ops, Constant *C, Type *Ty,

References

include/llvm/Analysis/TargetFolder.h
  174     return Fold(ConstantExpr::getCast(Op, C, DestTy));
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  488           Constant *Init = ConstantExpr::getCast(Instruction::IntToPtr,
include/llvm/IR/ConstantFolder.h
  186     return ConstantExpr::getCast(Op, C, DestTy);
lib/Analysis/ConstantFolding.cpp
  343         return ConstantExpr::getCast(Cast, C, DestTy);
  540         Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy);
  781       NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i],
 1331     return ConstantExpr::getCast(Opcode, C, DestTy);
 1351     return ConstantExpr::getCast(Opcode, C, DestTy);
 1362       return ConstantExpr::getCast(Opcode, C, DestTy);
lib/Analysis/InlineCost.cpp
  717         return ConstantExpr::getCast(I.getOpcode(), COps[0], I.getType());
lib/Analysis/InstructionSimplify.cpp
 1825     return ConstantExpr::getCast(Cast0->getOpcode(), C, Cast0->getType());
 3286         Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
 3345         Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
lib/Analysis/LoopUnrollAnalyzer.cpp
  156             ConstantExpr::getCast(I.getOpcode(), COp, I.getType())) {
lib/Analysis/PHITransAddr.cpp
  198       return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(),
lib/Analysis/ScalarEvolution.cpp
 8237             C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
lib/Analysis/ScalarEvolutionExpander.cpp
  146     return ConstantExpr::getCast(Op, C, Ty);
lib/Analysis/ValueTracking.cpp
 5044       ConstantExpr::getCast(*CastOp, CastedTo, C->getType(), true);
lib/AsmParser/LLParser.cpp
 3333     ID.ConstantVal = ConstantExpr::getCast((Instruction::CastOps)Opc,
lib/Bitcode/Reader/BitcodeReader.cpp
 2574         if (!V) V = ConstantExpr::getCast(Opc, Op, CurTy);
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  223     ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal,
lib/IR/ConstantFold.cpp
  398   C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
  413     C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
  462   C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
  475     Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false,
  499         Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo,
  515   C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
  543         return ConstantExpr::getCast(newOpc, CE->getOperand(0), DestTy);
  582       res.push_back(ConstantExpr::getCast(opc, C, DstEltTy));
  654             Idx = ConstantExpr::getCast(CastInst::getCastOpcode(Idx, true,
 2101           if (ConstantExpr::getCast(CE1->getOpcode(), C2Inverse,
lib/IR/Constants.cpp
 1260     return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced);
 1653   return getCast(opcode, C, Ty);
 1665   return getCast(opcode, C, Ty);
lib/Transforms/IPO/GlobalOpt.cpp
  716                                 ConstantExpr::getCast(CI->getOpcode(),
lib/Transforms/InstCombine/InstCombineCompares.cpp
 4355   Constant *Res2 = ConstantExpr::getCast(CastOp0->getOpcode(), Res1, DestTy);
lib/Transforms/InstCombine/InstCombineSelect.cpp
 1764   Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType);
 1783       Constant *AllOnesOrOne = ConstantExpr::getCast(ExtOpcode, One, SelType);
lib/Transforms/InstCombine/InstructionCombining.cpp
  286   Constant *CastC2 = ConstantExpr::getCast(CastOpcode, C2, DestTy);
 1057         InV = ConstantExpr::getCast(CI->getOpcode(), InC, RetTy);
 1592     if (ConstantExpr::getCast(CastOpc, NarrowC, BO.getType()) != WideC)
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  764           C = ConstantExpr::getCast(CastInst::ZExt, It.getCaseValue(), Int64Ty);
lib/Transforms/Scalar/JumpThreading.cpp
  681       R.first = ConstantExpr::getCast(CI->getOpcode(), R.first, CI->getType());
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 5291         C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  622       Current = ConstantExpr::getCast((*I)->getOpcode(), C, (*I)->getType());
lib/Transforms/Utils/Evaluator.cpp
  411       InstResult = ConstantExpr::getCast(CI->getOpcode(),
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
  181     llvm::Constant *new_func_cast = llvm::ConstantExpr::getCast(
unittests/Analysis/SparsePropagation.cpp
  519       ConstantExpr::getCast(Instruction::BitCast, P, Builder.getInt8PtrTy());
unittests/Linker/LinkModulesTest.cpp
   54     Constant *OnePtr = ConstantExpr::getCast(Instruction::IntToPtr, One,