Home
last modified time | relevance | path

Searched refs:BitCast (Results 1 – 25 of 105) sorted by relevance

12345

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUOpenCLEnqueuedBlockLowering.cpp130 auto *BitCast = cast<ConstantExpr>(UU); in runOnModule() local
131 auto *NewPtr = ConstantExpr::getPointerCast(GV, BitCast->getType()); in runOnModule()
132 BitCast->replaceAllUsesWith(NewPtr); in runOnModule()
H A DAMDGPUPromoteAlloca.cpp327 if (I->getOpcode() != Instruction::BitCast) in stripBitcasts()
378 PtrInst->getOpcode() == Instruction::BitCast) && in canVectorizeInst()
381 case Instruction::BitCast: in canVectorizeInst()
399 UserInst->getOpcode() == Instruction::BitCast) && in canVectorizeInst()
460 if (Inst->getOpcode() == Instruction::BitCast) { in tryPromoteAllocaToVector()
513 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
514 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
534 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
535 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
540 Builder.CreateStore(NewVecValue, BitCast); in tryPromoteAllocaToVector()
H A DAMDGPUAtomicOptimizer.cpp508 Value *const BitCast = B.CreateBitCast(Ballot, VecTy); in optimizeAtomic() local
509 Value *const ExtractLo = B.CreateExtractElement(BitCast, B.getInt32(0)); in optimizeAtomic()
510 Value *const ExtractHi = B.CreateExtractElement(BitCast, B.getInt32(1)); in optimizeAtomic()
H A DAMDGPULowerModuleLDSPass.cpp375 if (I->getOpcode() == Instruction::BitCast || in refineUsesAlignment()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp85 case Instruction::BitCast: in isSimpleEnoughValueToCommitHelper()
163 } else if (CE->getOpcode() == Instruction::BitCast && in isSimpleEnoughPointerToCommit()
236 case Instruction::BitCast: in ComputeLoadResult()
273 if (!CE || CE->getOpcode() != Instruction::BitCast || in getCalleeWithFormalArgs()
310 if (!RV || !CE || CE->getOpcode() != Instruction::BitCast) in castCallResultIfNeeded()
364 if (CE->getOpcode() == Instruction::BitCast) { in EvaluateBlock()
H A DCallPromotionUtils.cpp308 if (auto *BitCast = dyn_cast_or_null<BitCastInst>(Next)) { in versionCallSite() local
309 assert(BitCast->getOperand(0) == OrigInst && in versionCallSite()
311 auto NewBitCast = BitCast->clone(); in versionCallSite()
315 Next = BitCast->getNextNode(); in versionCallSite()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp2670 case Instruction::BitCast: in isIntegerCast()
2678 if (getOpcode() != Instruction::BitCast) in isLosslessCast()
2720 case Instruction::BitCast: in isNoopCast()
2866 return Instruction::BitCast; in isEliminableCastPair()
2873 return Instruction::BitCast; in isEliminableCastPair()
2883 return Instruction::BitCast; in isEliminableCastPair()
2899 return Instruction::BitCast; in isEliminableCastPair()
2907 return Instruction::BitCast; in isEliminableCastPair()
3256 return BitCast; in getCastOpcode()
3322 return BitCast; in getCastOpcode()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h100 if (auto *BitCast = dyn_cast<BitCastInst>(V)) variable
101 if (!OneUseOnly || BitCast->hasOneUse())
102 return BitCast->getOperand(0);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp61 if (!Bitcast || Bitcast->getOpcode() != Instruction::BitCast) in convertAnnotation2Metadata()
H A DFunctionAttrs.cpp479 case Instruction::BitCast: in determinePointerReadAttrs()
895 case Instruction::BitCast: in isFunctionMallocLike()
1008 case Instruction::BitCast: in isReturnNonNull()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp948 Value *BitCast = Builder.CreateBitCast(VecOp, BitCastTo); in visitTrunc() local
2252 case Instruction::BitCast: in collectInsertionElements()
2324 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() argument
2333 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt()
2344 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument
2346 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic()
2349 !match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || in foldBitCastBitwiseLogic()
2390 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect() argument
2393 if (!match(BitCast.getOperand(0), in foldBitCastSelect()
2399 Type *DestTy = BitCast.getType(); in foldBitCastSelect()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp285 case Instruction::BitCast: in isAddressExpression()
316 case Instruction::BitCast: in getPointerOperands()
593 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
652 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
1160 NewV = CastInst::Create(Instruction::BitCast, NewV, in rewriteWithNewAddressSpaces()
H A DSpeculativeExecution.cpp230 case Instruction::BitCast: in ComputeSpeculationCost()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp638 } else if (nsstring_expr->getOpcode() == Instruction::BitCast) { in RewriteObjCConstStrings()
947 ocr_initializer_expr->getOpcode() != Instruction::BitCast) in RewriteObjCClassReference()
1184 case Instruction::BitCast: in MaybeHandleVariable()
1474 if (CE->getOpcode() != Instruction::BitCast) in isGuardVariableRef()
1550 case Instruction::BitCast: { in UnfoldConstant()
H A DIRDynamicChecks.cpp457 case llvm::Instruction::BitCast: in GetFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp310 if (auto *BitCast = dyn_cast<BitCastInst>(Ptr)) { in lookThroughBitcast() local
311 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast()
312 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast()
316 Ptr = BitCast->getOperand(0); in lookThroughBitcast()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DCaptureTracking.cpp326 case Instruction::BitCast: in PointerMayBeCaptured()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp180 llvm::Instruction::BitCast, func, new_func_ptr_type); in fixupX86StructRetCalls()
/freebsd-13.1/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp266 case Instruction::BitCast: in ResolveConstantValue()
465 case Instruction::BitCast: in CanResolveConstant()
514 case Instruction::BitCast: in CanInterpret()
863 case Instruction::BitCast: in Interpret()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp155 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
505 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast() argument
508 for (User *U : BitCast->users()) { in traceBitCast()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h212 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DNoFolder.h246 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DInstruction.def195 HANDLE_CAST_INST(49, BitCast , BitCastInst ) // Type cast
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp220 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops() local
221 Value *Vec = BitCast->getOperand(0); in createTileLoadStoreLoops()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h199 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()

12345