Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp316 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore() local
317 if (!BitCast) in optimizePredicateStore()
321 if (BitCast->getOperand(0)->getType() != PredType) in optimizePredicateStore()
330 Builder.CreateStore(BitCast->getOperand(0), PtrBitCast); in optimizePredicateStore()
335 if (BitCast->getNumUses() == 0) in optimizePredicateStore()
336 BitCast->eraseFromParent(); in optimizePredicateStore()
361 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad() local
362 if (!BitCast || BitCast->getType() != PredType) in optimizePredicateLoad()
392 BitCast->replaceAllUsesWith(LoadPred); in optimizePredicateLoad()
393 BitCast->eraseFromParent(); in optimizePredicateLoad()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUOpenCLEnqueuedBlockLowering.cpp131 auto *BitCast = cast<ConstantExpr>(UU); in runOnModule() local
132 auto *NewPtr = ConstantExpr::getPointerCast(GV, BitCast->getType()); in runOnModule()
133 BitCast->replaceAllUsesWith(NewPtr); in runOnModule()
H A DAMDGPUPromoteAlloca.cpp502 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
503 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
516 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
517 Value *VecValue = Builder.CreateLoad(VectorTy, BitCast); in tryPromoteAllocaToVector()
522 Builder.CreateStore(NewVecValue, BitCast); in tryPromoteAllocaToVector()
H A DAMDGPUAtomicOptimizer.cpp514 Value *const BitCast = B.CreateBitCast(Ballot, VecTy); in optimizeAtomic() local
515 Value *const ExtractLo = B.CreateExtractElement(BitCast, B.getInt32(0)); in optimizeAtomic()
516 Value *const ExtractHi = B.CreateExtractElement(BitCast, B.getInt32(1)); in optimizeAtomic()
H A DAMDGPUPromoteKernelArguments.cpp86 case Instruction::BitCast: in enqueueUsers()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
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()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DInstructionsTest.cpp288 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
291 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
331 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
334 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
337 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
340 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
351 EXPECT_TRUE(CastInst::castIsValid(Instruction::BitCast, in TEST()
354 EXPECT_TRUE(CastInst::castIsValid(Instruction::BitCast, in TEST()
640 CastInst::BitCast); in TEST()
648 CastInst::BitCast); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstructions.cpp354 if (CE->getOpcode() == BitCast) in hasFnAttrOnCalledFunction()
366 if (CE->getOpcode() == BitCast) in hasFnAttrOnCalledFunction()
383 if (CE->getOpcode() == BitCast) in getFnAttrOnCalledFunction()
2887 case Instruction::BitCast: in isIntegerCast()
2937 case Instruction::BitCast: in isNoopCast()
3083 return Instruction::BitCast; in isEliminableCastPair()
3090 return Instruction::BitCast; in isEliminableCastPair()
3126 return Instruction::BitCast; in isEliminableCastPair()
3475 return BitCast; in getCastOpcode()
3541 return BitCast; in getCastOpcode()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DAddress.h157 llvm::Constant *BitCast = llvm::ConstantExpr::getBitCast( in getElementBitCast() local
159 return ConstantAddress(BitCast, ElemTy, getAlignment()); in getElementBitCast()
/llvm-project-15.0.7/llvm/test/Instrumentation/AddressSanitizer/
H A Dglobal_metadata_bitcasts.ll2 ; an entry that points to a BitCast instruction.
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp61 if (!Bitcast || Bitcast->getOpcode() != Instruction::BitCast) in convertAnnotation2Metadata()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h102 if (auto *BitCast = dyn_cast<BitCastInst>(V)) variable
103 if (!OneUseOnly || BitCast->hasOneUse())
104 return BitCast->getOperand(0);
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp955 Value *BitCast = Builder.CreateBitCast(VecOp, BitCastTo); in visitTrunc() local
2291 case Instruction::BitCast: in collectInsertionElements()
2368 if (!match(BitCast.getOperand(0), in canonicalizeBitCastExtElt()
2374 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt()
2392 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument
2394 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic()
2397 if (!match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || in foldBitCastBitwiseLogic()
2464 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect() argument
2467 if (!match(BitCast.getOperand(0), in foldBitCastSelect()
2473 Type *DestTy = BitCast.getType(); in foldBitCastSelect()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp306 case Instruction::BitCast: in isAddressExpression()
336 case Instruction::BitCast: in getPointerOperands()
628 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
690 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
1250 NewV = CastInst::Create(Instruction::BitCast, NewV, in rewriteWithNewAddressSpaces()
H A DSpeculativeExecution.cpp230 case Instruction::BitCast: in ComputeSpeculationCost()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DNoFolder.h138 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DConstantFolder.h201 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp99 CastInst::Create(Instruction::BitCast, Operand, in maybeGenerateBitcast()
/llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp174 llvm::Instruction::BitCast, func, new_func_ptr_type); in fixupX86StructRetCalls()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp312 if (auto *BitCast = dyn_cast<BitCastInst>(Ptr)) { in lookThroughBitcast() local
313 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast()
314 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast()
318 Ptr = BitCast->getOperand(0); in lookThroughBitcast()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp910 ocr_initializer_expr->getOpcode() != Instruction::BitCast) in RewriteObjCClassReference()
1142 case Instruction::BitCast: in MaybeHandleVariable()
1428 if (CE->getOpcode() != Instruction::BitCast) in isGuardVariableRef()
1504 case Instruction::BitCast: { in UnfoldConstant()
/llvm-project-15.0.7/lldb/source/Expression/
H A DIRInterpreter.cpp267 case Instruction::BitCast: in ResolveConstantValue()
467 case Instruction::BitCast: in CanResolveConstant()
523 case Instruction::BitCast: in CanInterpret()
871 case Instruction::BitCast: in Interpret()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp163 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
585 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast() argument
588 for (User *U : BitCast->users()) { in traceBitCast()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetFolder.h211 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCaptureTracking.cpp394 case Instruction::BitCast: in DetermineUseCaptureKind()

12345