HomeSort by relevance Sort by last modified time
    Searched refs:CastInst (Results 1 - 25 of 57) sorted by null

1 2 3

  /external/llvm/include/llvm/Transforms/Utils/
SimplifyIndVar.h 26 class CastInst;
39 virtual void visitCast(CastInst *Cast) = 0;
  /external/llvm/include/llvm/Support/
InstVisitor.h 177 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);}
178 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);}
179 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);}
180 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);}
181 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);}
182 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);}
183 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);}
184 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);}
185 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);}
186 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);}
    [all...]
NoFolder.h 204 return CastInst::Create(Op, C, DestTy);
207 return CastInst::CreatePointerCast(C, DestTy);
211 return CastInst::CreateIntegerCast(C, DestTy, isSigned);
214 return CastInst::CreateFPCast(C, DestTy);
227 return CastInst::CreateZExtOrBitCast(C, DestTy);
230 return CastInst::CreateSExtOrBitCast(C, DestTy);
234 return CastInst::CreateTruncOrBitCast(C, DestTy);
  /external/llvm/unittests/VMCore/
InstructionsTest.cpp 116 TEST(InstructionsTest, CastInst) {
128 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, X86MMXTy));
129 EXPECT_TRUE(CastInst::isCastable(X86MMXTy, V8x8Ty));
130 EXPECT_FALSE(CastInst::isCastable(Int64Ty, X86MMXTy));
131 EXPECT_TRUE(CastInst::isCastable(V8x64Ty, V8x8Ty));
132 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, V8x64Ty));
133 EXPECT_EQ(CastInst::Trunc, CastInst::getCastOpcode(c64, true, V8x8Ty, true));
134 EXPECT_EQ(CastInst::SExt, CastInst::getCastOpcode(c8, true, V8x64Ty, true))
    [all...]
  /external/llvm/include/llvm/
InstrTypes.h 381 // CastInst Class
384 /// CastInst - This is the base class for all instructions that perform data
388 /// if (isa<CastInst>(Instr)) { ... }
390 class CastInst : public UnaryInstruction {
394 CastInst(Type *Ty, unsigned iType, Value *S,
400 CastInst(Type *Ty, unsigned iType, Value *S,
406 /// Provides a way to construct any of the CastInst subclasses using an
410 /// insert the new CastInst before InsertBefore (if it is non-null).
411 /// @brief Construct any of the CastInst subclasses
412 static CastInst *Create
    [all...]
Instructions.h     [all...]
  /external/llvm/lib/Transforms/Instrumentation/
ProfilingUtils.cpp 73 Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy,
76 CastInst::Create(opcode, AI, ArgVTy, "argv.cast", InitCall));
89 opcode = CastInst::getCastOpcode(InitCall, true, AI->getType(), true);
91 CastInst::Create(opcode, InitCall, AI->getType(), "", InsertPos));
93 opcode = CastInst::getCastOpcode(AI, true,
96 CastInst::Create(opcode, AI, Type::getInt32Ty(Context),
  /external/llvm/lib/Analysis/
PHITransAddr.cpp 30 if (isa<CastInst>(Inst) &&
187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
205 if (CastInst *CastI = dyn_cast<CastInst>(*UI))
382 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
389 CastInst *New = CastInst::Create(Cast->getOpcode(),
CodeMetrics.cpp 80 if (const CastInst *CI = dyn_cast<CastInst>(I)) {
ScalarEvolutionExpander.cpp 52 if (CastInst *CI = dyn_cast<CastInst>(U))
61 Ret = CastInst::Create(Op, V, Ty, "", IP);
74 Ret = CastInst::Create(Op, V, Ty, V->getName(), IP);
89 Instruction::CastOps Op = CastInst::getCastOpcode(V, false, Ty, false);
101 if (CastInst *CI = dyn_cast<CastInst>(V)) {
109 if (CastInst *CI = dyn_cast<CastInst>(V))
    [all...]
Loads.cpp 41 if (isa<BinaryOperator>(A) || isa<CastInst>(A) ||
  /external/llvm/unittests/Support/
ValueHandleTest.cpp 109 AssertingVH<CastInst> AVH(BitcastV.get());
110 CastInst *implicit_to_exact_type = AVH;
118 // Make sure I can call a method on the underlying CastInst. It
125 const CastInst *ConstBitcast = BitcastV.get();
126 AssertingVH<const CastInst> AVH(ConstBitcast);
127 const CastInst *implicit_to_exact_type = AVH;
173 EXPECT_EQ(sizeof(CastInst *), sizeof(AssertingVH<CastInst>));
  /external/llvm/lib/VMCore/
Instructions.cpp 369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
    [all...]
ConstantFold.cpp 72 /// expressions together. It uses CastInst::isEliminableCastPair to determine
83 assert(CastInst::isCast(opc) && "Invalid cast opcode");
91 // Let CastInst::isEliminableCastPair do the heavy lifting.
92 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
379 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
396 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
445 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
460 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false,
484 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo,
500 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineCasts.cpp 196 Res = CastInst::CreateIntegerCast(I->getOperand(0), Ty,
225 /// This function is a wrapper around CastInst::isEliminableCastPair. It
229 const CastInst *CI, ///< The first cast instruction
242 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
268 if (const CastInst *CI = dyn_cast<CastInst>(V))
281 /// @brief Implement the transforms common to all CastInst visitors.
282 Instruction *InstCombiner::commonCastTransforms(CastInst &CI) {
287 if (CastInst *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cas
    [all...]
InstCombine.h 161 Instruction *commonCastTransforms(CastInst &CI);
162 Instruction *commonPointerCastTransforms(CastInst &CI);
167 Instruction *visitFPExt(CastInst &CI);
170 Instruction *visitUIToFP(CastInst &CI);
171 Instruction *visitSIToFP(CastInst &CI);
InstCombineAndOrXor.cpp     [all...]
InstCombineCalls.cpp 666 return CastInst::Create(Instruction::BitCast, Result, CI.getType());
754 const CastInst * const CI,
    [all...]
InstCombinePHI.cpp 407 if (isa<CastInst>(FirstInst)) {
483 if (CastInst *FirstCI = dyn_cast<CastInst>(FirstInst)) {
484 CastInst *NewCI = CastInst::Create(FirstCI->getOpcode(), PhiVal,
    [all...]
InstCombineLoadStoreAlloca.cpp 231 if (isa<CastInst>(Op))
427 isa<CastInst>(A) ||
535 if (isa<CastInst>(Ptr))
  /external/llvm/lib/Transforms/Scalar/
Reg2Mem.cpp 85 CastInst *AllocaInsertionPoint =
EarlyCSE.cpp 64 return isa<CastInst>(Inst) || isa<BinaryOperator>(Inst) ||
99 if (CastInst *CI = dyn_cast<CastInst>(Inst))
CodeGenPrepare.cpp 391 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){
421 DenseMap<BasicBlock*, CastInst*> InsertedCasts;
443 CastInst *&InsertedCast = InsertedCasts[UserBB];
448 CastInst::Create(CI->getOpcode(), CI->getOperand(0), CI->getType(), "",
    [all...]
  /external/llvm/lib/Transforms/Utils/
SimplifyIndVar.cpp 358 CastInst *Cast = dyn_cast<CastInst>(UseOper.first);
  /external/llvm/lib/CodeGen/
SjLjEHPrepare.cpp 280 CastInst *NC =
286 // Normally it's forbidden to replace a CastInst's operand because it
451 Value *SetjmpArg = CastInst::Create(Instruction::BitCast, JBufPtr,
458 Value *FuncCtxArg = CastInst::Create(Instruction::BitCast, FuncCtx,

Completed in 473 milliseconds

1 2 3