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

1 2 3

  /external/llvm/unittests/IR/
InstructionsTest.cpp 116 TEST(InstructionsTest, CastInst) {
152 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, X86MMXTy));
153 EXPECT_TRUE(CastInst::isCastable(X86MMXTy, V8x8Ty));
154 EXPECT_FALSE(CastInst::isCastable(Int64Ty, X86MMXTy));
155 EXPECT_TRUE(CastInst::isCastable(V8x64Ty, V8x8Ty));
156 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, V8x64Ty));
157 EXPECT_EQ(CastInst::Trunc, CastInst::getCastOpcode(c64, true, V8x8Ty, true));
158 EXPECT_EQ(CastInst::SExt, CastInst::getCastOpcode(c8, true, V8x64Ty, true))
    [all...]
  /external/llvm/include/llvm/Transforms/Utils/
SimplifyIndVar.h 24 class CastInst;
37 virtual void visitCast(CastInst *Cast) = 0;
  /external/llvm/include/llvm/
InstVisitor.h 182 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);}
183 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);}
184 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);}
185 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);}
186 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);}
187 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);}
188 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);}
189 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);}
190 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);}
191 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);}
    [all...]
  /external/llvm/include/llvm/IR/
InstrTypes.h 378 // CastInst Class
381 /// CastInst - This is the base class for all instructions that perform data
385 /// if (isa<CastInst>(Instr)) { ... }
387 class CastInst : public UnaryInstruction {
391 CastInst(Type *Ty, unsigned iType, Value *S,
397 CastInst(Type *Ty, unsigned iType, Value *S,
403 /// Provides a way to construct any of the CastInst subclasses using an
407 /// insert the new CastInst before InsertBefore (if it is non-null).
408 /// @brief Construct any of the CastInst subclasses
409 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/include/llvm/Support/
NoFolder.h 216 return CastInst::Create(Op, C, DestTy);
219 return CastInst::CreatePointerCast(C, DestTy);
223 return CastInst::CreateIntegerCast(C, DestTy, isSigned);
226 return CastInst::CreateFPCast(C, DestTy);
239 return CastInst::CreateZExtOrBitCast(C, DestTy);
242 return CastInst::CreateSExtOrBitCast(C, DestTy);
246 return CastInst::CreateTruncOrBitCast(C, DestTy);
  /external/llvm/lib/Analysis/
PHITransAddr.cpp 30 if (isa<CastInst>(Inst) &&
189 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
207 if (CastInst *CastI = dyn_cast<CastInst>(*UI))
384 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
391 CastInst *New = CastInst::Create(Cast->getOpcode(),
Loads.cpp 42 if (isa<BinaryOperator>(A) || isa<CastInst>(A) ||
TargetTransformInfo.cpp 413 if (const CastInst *CI = dyn_cast<CastInst>(U)) {
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...]
  /external/llvm/lib/IR/
Instructions.cpp 387 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
390 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
    [all...]
ConstantFold.cpp 71 /// expressions together. It uses CastInst::isEliminableCastPair to determine
82 assert(CastInst::isCast(opc) && "Invalid cast opcode");
95 // Let CastInst::isEliminableCastPair do the heavy lifting.
96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
383 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
400 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
449 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false,
464 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false,
488 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo,
504 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false
    [all...]
  /external/llvm/unittests/Support/
ValueHandleTest.cpp 106 AssertingVH<CastInst> AVH(BitcastV.get());
107 CastInst *implicit_to_exact_type = AVH;
115 // Make sure I can call a method on the underlying CastInst. It
122 const CastInst *ConstBitcast = BitcastV.get();
123 AssertingVH<const CastInst> AVH(ConstBitcast);
124 const CastInst *implicit_to_exact_type = AVH;
170 EXPECT_EQ(sizeof(CastInst *), sizeof(AssertingVH<CastInst>));
  /external/llvm/lib/Transforms/InstCombine/
InstCombineCasts.cpp 202 Res = CastInst::CreateIntegerCast(I->getOperand(0), Ty,
231 /// This function is a wrapper around CastInst::isEliminableCastPair. It
235 const CastInst *CI, ///< The first cast instruction
253 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
277 if (const CastInst *CI = dyn_cast<CastInst>(V))
290 /// @brief Implement the transforms common to all CastInst visitors.
291 Instruction *InstCombiner::commonCastTransforms(CastInst &CI) {
296 if (CastInst *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cas
    [all...]
InstCombine.h 167 Instruction *commonCastTransforms(CastInst &CI);
168 Instruction *commonPointerCastTransforms(CastInst &CI);
173 Instruction *visitFPExt(CastInst &CI);
176 Instruction *visitUIToFP(CastInst &CI);
177 Instruction *visitSIToFP(CastInst &CI);
InstCombineCalls.cpp 625 return CastInst::Create(Instruction::BitCast, Result, CI.getType());
697 return CastInst::CreateZExtOrBitCast(Arg0, II->getType());
699 return CastInst::CreateSExtOrBitCast(Arg0, II->getType());
764 const CastInst * const CI,
    [all...]
InstCombineAndOrXor.cpp     [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...]
InstCombineVectorOps.cpp 276 } else if (CastInst *CI = dyn_cast<CastInst>(I)) {
283 return CastInst::Create(CI->getOpcode(), EE, EI.getType());
634 return CastInst::Create(cast<CastInst>(I)->getOpcode(), NewOps[0], DestTy,
    [all...]
  /external/llvm/lib/Transforms/Scalar/
Reg2Mem.cpp 85 CastInst *AllocaInsertionPoint =
EarlyCSE.cpp 65 return isa<CastInst>(Inst) || isa<BinaryOperator>(Inst) ||
123 if (CastInst *CI = dyn_cast<CastInst>(Inst))
CodeGenPrepare.cpp 462 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){
492 DenseMap<BasicBlock*, CastInst*> InsertedCasts;
514 CastInst *&InsertedCast = InsertedCasts[UserBB];
519 CastInst::Create(CI->getOpcode(), CI->getOperand(0), CI->getType(), "",
    [all...]
  /external/llvm/lib/Transforms/Utils/
SimplifyIndVar.cpp 356 CastInst *Cast = dyn_cast<CastInst>(UseOper.first);
  /external/llvm/lib/Target/PowerPC/
PPCCTRLoops.cpp 340 CastInst *CI = cast<CastInst>(J);

Completed in 647 milliseconds

1 2 3