Home
last modified time | relevance | path

Searched refs:BitCastInst (Results 1 – 25 of 64) sorted by relevance

123

/minix3/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXLowerStructArgs.cpp84 new BitCastInst(Arg, Type::getInt8PtrTy(Func->getParent()->getContext(), in handleParam()
90 BitCastInst *BitCast = new BitCastInst( in handleParam()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A DSITypeRewriter.cpp49 void visitBitCast(BitCastInst &I);
146 void SITypeRewriter::visitBitCast(BitCastInst &I) { in visitBitCast()
152 if (BitCastInst *Op = dyn_cast<BitCastInst>(I.getOperand(0))) { in visitBitCast()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp274 Args[0] = new BitCastInst(Args[0], I8XX, "", Store); in ContractRelease()
276 Args[1] = new BitCastInst(Args[1], I8X, "", Store); in ContractRelease()
471 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction()
487 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction()
495 if (const BitCastInst *BI = dyn_cast<BitCastInst>(Arg)) in runOnFunction()
H A DObjCARC.h270 return isa<BitCastInst>(I) || in IsNoopInstruction()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp73 if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) { in isOnlyCopiedFromConstantGlobal()
256 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
382 if (auto *BC = dyn_cast<BitCastInst>(LI.user_back())) { in combineLoadToOperationType()
531 if (auto *BC = dyn_cast<BitCastInst>(V)) { in combineStoreToValueType()
654 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
710 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())); in visitStoreInst()
774 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in SimplifyStoreAtEndOfBlock()
H A DInstCombineCasts.cpp81 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation()
1438 BitCastInst *BCI = dyn_cast<BitCastInst>(GEP->getOperand(0)); in commonPointerCastTransforms()
1456 if (isa<BitCastInst>(CI)) in commonPointerCastTransforms()
1457 return new BitCastInst(NGEP, CI.getType()); in commonPointerCastTransforms()
1672 static Value *OptimizeIntegerToVectorInsertions(BitCastInst &CI, in OptimizeIntegerToVectorInsertions()
1702 static Instruction *OptimizeIntToFloatBitCast(BitCastInst &CI,InstCombiner &IC){ in OptimizeIntToFloatBitCast()
1760 Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { in visitBitCast()
1824 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0))) in visitBitCast()
1866 BitCastInst *Tmp; in visitBitCast()
1870 if (((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(0))) && in visitBitCast()
[all …]
H A DInstructionCombining.cpp733 if (BitCastInst *BC = dyn_cast<BitCastInst>(&Op)) { in FoldOpIntoSelect()
1744 if (BitCastInst *BC = dyn_cast<BitCastInst>(ASC->getOperand(0))) in visitGetElementPtrInst()
1753 if (BitCastInst *BCI = dyn_cast<BitCastInst>(PtrOp)) { in visitGetElementPtrInst()
1758 if (!isa<BitCastInst>(Operand) && in visitGetElementPtrInst()
1780 return new BitCastInst(Operand, GEP.getType()); in visitGetElementPtrInst()
1798 return new BitCastInst(NGEP, GEP.getType()); in visitGetElementPtrInst()
1897 } else if (isa<BitCastInst>(I) || isa<GetElementPtrInst>(I)) { in visitAllocSite()
H A DInstCombine.h218 Instruction *visitBitCast(BitCastInst &CI);
456 Instruction *PromoteCastOfAllocation(BitCastInst &CI, AllocaInst &AI);
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp172 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
502 if (BitCastInst *BCI = dyn_cast<BitCastInst>(UI)) { in CanConvertToScalar()
609 if (BitCastInst *CI = dyn_cast<BitCastInst>(User)) { in ConvertUsesToScalar()
1304 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) { in tryToMakeAllocaBePromotable()
1322 if (BitCastInst *BCI = dyn_cast<BitCastInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable()
1324 for (BitCastInst::user_iterator I = BCI->user_begin(), E = BCI->user_end(); in tryToMakeAllocaBePromotable()
1616 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in isSafeForScalarRepl()
1681 if (BitCastInst *BC = dyn_cast<BitCastInst>(UI)) { in isSafePHISelectUseForScalarRepl()
1883 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) { in RewriteForScalarRepl()
1981 BitCastInst *BCI = new BitCastInst(NewAI, AI->getType(), "", NewAI); in RewriteForScalarRepl()
[all …]
H A DLoadCombine.cpp101 while (isa<BitCastInst>(POP.Pointer) || isa<GetElementPtrInst>(POP.Pointer)) { in getPointerOffsetPair()
111 } else if (auto *BC = dyn_cast<BitCastInst>(POP.Pointer)) in getPointerOffsetPair()
H A DReg2Mem.cpp86 new BitCastInst(Constant::getNullValue(Type::getInt32Ty(F.getContext())), in INITIALIZE_PASS_DEPENDENCY()
H A DSeparateConstOffsetFromGEP.cpp984 NewGEP = new BitCastInst(NewGEP, I8PtrTy, "", GEP); in splitGEP()
989 NewGEP = new BitCastInst(NewGEP, GEP->getType(), GEP->getName(), GEP); in splitGEP()
/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DInstructionsTest.cpp326 CastInst *BTC0 = new BitCastInst(Gep0, V2xi8PTy); in TEST()
327 CastInst *BTC1 = new BitCastInst(Gep1, V2xi8PTy); in TEST()
328 CastInst *BTC2 = new BitCastInst(Gep2, V2xi8PTy); in TEST()
329 CastInst *BTC3 = new BitCastInst(Gep3, V2xi8PTy); in TEST()
H A DValueMapTest.cpp26 std::unique_ptr<BitCastInst> BitcastV;
31 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))), in ValueMapTest()
H A DValueHandleTest.cpp24 std::auto_ptr<BitCastInst> BitcastV;
28 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(getGlobalContext()))) { in ValueHandle()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h238 void visitBitCastInst(BitCastInst &BC) { in visitBitCastInst()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp635 } else if (const BitCastInst *CI = dyn_cast<BitCastInst>(U)) { in AllUsesOfValueWillTrapIfNull()
773 isa<BitCastInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
853 BitCastInst *TheBC = nullptr; in OptimizeGlobalAddressOfMalloc()
856 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) { in OptimizeGlobalAddressOfMalloc()
865 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
991 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
1022 } else if (isa<BitCastInst>(U)) { in ReplaceUsesOfMallocWithGlobal()
1544 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); in TryToOptimizeStoreOfMallocToGlobal()
1547 if (BitCastInst *BCI = dyn_cast<BitCastInst>(Malloc)) in TryToOptimizeStoreOfMallocToGlobal()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DIRBuilder.cpp49 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue()
H A DInstructions.cpp431 Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore); in createMalloc()
438 Result = new BitCastInst(MCall, AllocPtrType, Name); in createMalloc()
500 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
504 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree()
2422 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
2444 case BitCast: return new BitCastInst (S, Ty, Name, InsertAtEnd); in Create()
3100 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst
3106 BitCastInst::BitCastInst( in BitCastInst() function in BitCastInst
3741 BitCastInst *BitCastInst::clone_impl() const { in clone_impl()
3742 return new BitCastInst(getOperand(0), getType()); in clone_impl()
H A DValue.cpp499 if (const BitCastInst* BC = dyn_cast<BitCastInst>(V)) { in isDereferenceablePointer()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DStackProtector.cpp180 } else if (const BitCastInst *BI = dyn_cast<BitCastInst>(U)) { in HasAddressTaken()
H A DStackColoring.cpp489 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DGlobalStatus.cpp124 } else if (isa<BitCastInst>(I)) { in analyzeGlobalAux()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp191 if (const BitCastInst *BCI = dyn_cast<BitCastInst>(Address)) in set()
/minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h170 void visitBitCastInst(BitCastInst &I);

123