/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 171 TEST(InstructionsTest, CastInst) { in TEST() argument 210 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, X86MMXTy)); in TEST() 211 EXPECT_TRUE(CastInst::isCastable(X86MMXTy, V8x8Ty)); in TEST() 212 EXPECT_FALSE(CastInst::isCastable(Int64Ty, X86MMXTy)); in TEST() 213 EXPECT_TRUE(CastInst::isCastable(V8x64Ty, V8x8Ty)); in TEST() 214 EXPECT_TRUE(CastInst::isCastable(V8x8Ty, V8x64Ty)); in TEST() 215 EXPECT_EQ(CastInst::Trunc, CastInst::getCastOpcode(c64, true, V8x8Ty, true)); in TEST() 216 EXPECT_EQ(CastInst::SExt, CastInst::getCastOpcode(c8, true, V8x64Ty, true)); in TEST() 218 EXPECT_FALSE(CastInst::isBitCastable(V8x8Ty, X86MMXTy)); in TEST() 219 EXPECT_FALSE(CastInst::isBitCastable(X86MMXTy, V8x8Ty)); in TEST() [all …]
|
D | ValueHandleTest.cpp | 105 AssertingVH<CastInst> AVH(BitcastV.get()); in TEST_F() 106 CastInst *implicit_to_exact_type = AVH; in TEST_F() 121 const CastInst *ConstBitcast = BitcastV.get(); in TEST_F() 122 AssertingVH<const CastInst> AVH(ConstBitcast); in TEST_F() 123 const CastInst *implicit_to_exact_type = AVH; in TEST_F() 169 EXPECT_EQ(sizeof(CastInst *), sizeof(AssertingVH<CastInst>)); in TEST_F()
|
/external/llvm-project/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 183 TEST(InstructionsTest, CastInst) { in TEST() argument 232 EXPECT_EQ(CastInst::Trunc, CastInst::getCastOpcode(c64, true, V8x8Ty, true)); in TEST() 233 EXPECT_EQ(CastInst::SExt, CastInst::getCastOpcode(c8, true, V8x64Ty, true)); in TEST() 235 EXPECT_FALSE(CastInst::isBitCastable(V8x8Ty, X86MMXTy)); in TEST() 236 EXPECT_FALSE(CastInst::isBitCastable(X86MMXTy, V8x8Ty)); in TEST() 237 EXPECT_FALSE(CastInst::isBitCastable(Int64Ty, X86MMXTy)); in TEST() 238 EXPECT_FALSE(CastInst::isBitCastable(V8x64Ty, V8x8Ty)); in TEST() 239 EXPECT_FALSE(CastInst::isBitCastable(V8x8Ty, V8x64Ty)); in TEST() 242 EXPECT_FALSE(CastInst::isBitCastable(Int32PtrTy, Int32PtrAS1Ty)); in TEST() 243 EXPECT_FALSE(CastInst::isBitCastable(Int32PtrAS1Ty, Int32PtrTy)); in TEST() [all …]
|
D | ValueHandleTest.cpp | 122 AssertingVH<CastInst> AVH(BitcastV.get()); in TEST_F() 123 CastInst *implicit_to_exact_type = AVH; in TEST_F() 138 const CastInst *ConstBitcast = BitcastV.get(); in TEST_F() 139 AssertingVH<const CastInst> AVH(ConstBitcast); in TEST_F() 140 const CastInst *implicit_to_exact_type = AVH; in TEST_F() 186 EXPECT_EQ(sizeof(CastInst *), sizeof(AssertingVH<CastInst>)); in TEST_F() 433 PoisoningVH<CastInst> VH(BitcastV.get()); in TEST_F() 434 CastInst *implicit_to_exact_type = VH; in TEST_F() 449 const CastInst *ConstBitcast = BitcastV.get(); in TEST_F() 450 PoisoningVH<const CastInst> VH(ConstBitcast); in TEST_F() [all …]
|
/external/llvm/include/llvm/IR/ |
D | InstVisitor.h | 185 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);} in visitTruncInst() 186 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);} in visitZExtInst() 187 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);} in visitSExtInst() 188 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);} in visitFPTruncInst() 189 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);} in visitFPExtInst() 190 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);} in visitFPToUIInst() 191 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);} in visitFPToSIInst() 192 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);} in visitUIToFPInst() 193 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);} in visitSIToFPInst() 194 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);} in visitPtrToIntInst() [all …]
|
D | NoFolder.h | 217 return CastInst::Create(Op, C, DestTy); in CreateCast() 220 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast() 224 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast() 227 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast() 240 return CastInst::CreateZExtOrBitCast(C, DestTy); in CreateZExtOrBitCast() 243 return CastInst::CreateSExtOrBitCast(C, DestTy); in CreateSExtOrBitCast() 247 return CastInst::CreateTruncOrBitCast(C, DestTy); in CreateTruncOrBitCast()
|
D | InstrTypes.h | 564 class CastInst : public UnaryInstruction { 569 CastInst(Type *Ty, unsigned iType, Value *S, 575 CastInst(Type *Ty, unsigned iType, Value *S, 588 static CastInst *Create( 601 static CastInst *Create( 610 static CastInst *CreateZExtOrBitCast( 618 static CastInst *CreateZExtOrBitCast( 626 static CastInst *CreateSExtOrBitCast( 634 static CastInst *CreateSExtOrBitCast( 642 static CastInst *CreatePointerCast( [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | InstVisitor.h | 178 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);} in visitTruncInst() 179 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);} in visitZExtInst() 180 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);} in visitSExtInst() 181 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);} in visitFPTruncInst() 182 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);} in visitFPExtInst() 183 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);} in visitFPToUIInst() 184 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);} in visitFPToSIInst() 185 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);} in visitUIToFPInst() 186 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);} in visitSIToFPInst() 187 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);} in visitPtrToIntInst() [all …]
|
D | NoFolder.h | 255 return CastInst::Create(Op, C, DestTy); in CreateCast() 259 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast() 264 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast() 268 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast() 284 return CastInst::CreateZExtOrBitCast(C, DestTy); in CreateZExtOrBitCast() 288 return CastInst::CreateSExtOrBitCast(C, DestTy); in CreateSExtOrBitCast() 292 return CastInst::CreateTruncOrBitCast(C, DestTy); in CreateTruncOrBitCast()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | InstVisitor.h | 177 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);} in visitTruncInst() 178 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);} in visitZExtInst() 179 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);} in visitSExtInst() 180 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);} in visitFPTruncInst() 181 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);} in visitFPExtInst() 182 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);} in visitFPToUIInst() 183 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);} in visitFPToSIInst() 184 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);} in visitUIToFPInst() 185 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);} in visitSIToFPInst() 186 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);} in visitPtrToIntInst() [all …]
|
D | NoFolder.h | 224 return CastInst::Create(Op, C, DestTy); in CreateCast() 228 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast() 233 return CastInst::CreatePointerBitCastOrAddrSpaceCast(C, DestTy); in CreatePointerBitCastOrAddrSpaceCast() 238 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast() 242 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast() 258 return CastInst::CreateZExtOrBitCast(C, DestTy); in CreateZExtOrBitCast() 262 return CastInst::CreateSExtOrBitCast(C, DestTy); in CreateSExtOrBitCast() 266 return CastInst::CreateTruncOrBitCast(C, DestTy); in CreateTruncOrBitCast()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 124 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local 125 if (CastInst->isCast()) in findMatInsertPt() 126 return CastInst; in findMatInsertPt() 249 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local 252 if (!CastInst->isCast()) in collectConstantCandidates() 255 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() 502 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local 503 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants() 506 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants() 508 ClonedCastInst = CastInst->clone(); in emitBaseConstants() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 30 if (isa<CastInst>(Inst) && in CanPHITrans() 187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() 204 if (CastInst *CastI = dyn_cast<CastInst>(U)) in PHITranslateSubExpr() 380 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr() 387 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 30 if (isa<CastInst>(Inst) && in CanPHITrans() 187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() 204 if (CastInst *CastI = dyn_cast<CastInst>(U)) in PHITranslateSubExpr() 380 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr() 387 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr()
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 30 if (isa<CastInst>(Inst) && in CanPHITrans() 190 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() 207 if (CastInst *CastI = dyn_cast<CastInst>(U)) in PHITranslateSubExpr() 384 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr() 391 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 458 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 461 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 2326 void CastInst::anchor() {} in anchor() 2329 bool CastInst::isIntegerCast() const { in isIntegerCast() 2342 bool CastInst::isLosslessCast() const { in isLosslessCast() 2367 bool CastInst::isNoopCast(Instruction::CastOps Opcode, in isNoopCast() 2397 bool CastInst::isNoopCast(Type *IntPtrTy) const { in isNoopCast() 2401 bool CastInst::isNoopCast(const DataLayout &DL) const { in isNoopCast() 2422 unsigned CastInst::isEliminableCastPair( in isEliminableCastPair() 2646 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 539 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 542 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 2443 bool CastInst::isIntegerCast() const { in isIntegerCast() 2456 bool CastInst::isLosslessCast() const { in isLosslessCast() 2481 bool CastInst::isNoopCast(Instruction::CastOps Opcode, in isNoopCast() 2510 bool CastInst::isNoopCast(const DataLayout &DL) const { in isNoopCast() 2522 unsigned CastInst::isEliminableCastPair( in isEliminableCastPair() 2739 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create() 2761 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create() 2783 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty, in CreateZExtOrBitCast() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CallPromotionUtils.cpp | 161 static void createRetBitCast(CallSite CS, Type *RetTy, CastInst **RetBitCast) { in createRetBitCast() 179 auto *Cast = CastInst::CreateBitOrPointerCast(CS.getInstruction(), RetTy, "", in createRetBitCast() 330 if (!CastInst::isBitOrNoopPointerCastable(FuncRetTy, CallRetTy, DL)) { in isLegalToPromote() 355 if (!CastInst::isBitOrNoopPointerCastable(ActualTy, FormalTy, DL)) { in isLegalToPromote() 366 CastInst **RetBitCast) { in promoteCall() 408 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", in promoteCall()
|
/external/llvm-project/llvm/lib/IR/ |
D | Instructions.cpp | 608 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 611 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 2628 bool CastInst::isIntegerCast() const { in isIntegerCast() 2641 bool CastInst::isLosslessCast() const { in isLosslessCast() 2666 bool CastInst::isNoopCast(Instruction::CastOps Opcode, in isNoopCast() 2696 bool CastInst::isNoopCast(const DataLayout &DL) const { in isNoopCast() 2708 unsigned CastInst::isEliminableCastPair( in isEliminableCastPair() 2925 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create() 2947 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create() 2969 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty, in CreateZExtOrBitCast() [all …]
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | CallPromotionUtils.h | 19 class CastInst; variable 41 CastInst **RetBitCast = nullptr);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 176 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local 177 if (CastInst->isCast()) in findMatInsertPt() 178 return CastInst; in findMatInsertPt() 446 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local 449 if (!CastInst->isCast()) in collectConstantCandidates() 452 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() 779 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local 780 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants() 783 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants() 785 ClonedCastInst = CastInst->clone(); in emitBaseConstants() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 176 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local 177 if (CastInst->isCast()) in findMatInsertPt() 178 return CastInst; in findMatInsertPt() 450 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local 453 if (!CastInst->isCast()) in collectConstantCandidates() 456 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() 784 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local 785 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants() 788 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants() 790 ClonedCastInst = CastInst->clone(); in emitBaseConstants() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SimplifyIndVar.h | 23 class CastInst; variable 44 virtual void visitCast(CastInst *Cast) = 0;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | SimplifyIndVar.h | 22 class CastInst; variable 43 virtual void visitCast(CastInst *Cast) = 0;
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CallPromotionUtils.cpp | 164 static void createRetBitCast(CallBase &CB, Type *RetTy, CastInst **RetBitCast) { in createRetBitCast() 182 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast() 397 if (!CastInst::isBitOrNoopPointerCastable(FuncRetTy, CallRetTy, DL)) { in isLegalToPromote() 426 if (!CastInst::isBitOrNoopPointerCastable(ActualTy, FormalTy, DL)) { in isLegalToPromote() 446 CastInst **RetBitCast) { in promoteCall() 488 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", &CB); in promoteCall()
|