| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | SVEIntrinsicOpts.cpp | 316 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 D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 131 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 D | AMDGPUPromoteAlloca.cpp | 502 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 D | AMDGPUAtomicOptimizer.cpp | 514 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 D | AMDGPUPromoteKernelArguments.cpp | 86 case Instruction::BitCast: in enqueueUsers()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 308 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 D | InstructionsTest.cpp | 288 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 D | Instructions.cpp | 354 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 D | Address.h | 157 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 D | global_metadata_bitcasts.ll | 2 ; an entry that points to a BitCast instruction.
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | Annotation2Metadata.cpp | 61 if (!Bitcast || Bitcast->getOpcode() != Instruction::BitCast) in convertAnnotation2Metadata()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 102 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 D | InstCombineCasts.cpp | 955 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 D | InferAddressSpaces.cpp | 306 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 D | SpeculativeExecution.cpp | 230 case Instruction::BitCast: in ComputeSpeculationCost()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | NoFolder.h | 138 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
|
| H A D | ConstantFolder.h | 201 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 99 CastInst::Create(Instruction::BitCast, Operand, in maybeGenerateBitcast()
|
| /llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/ |
| H A D | RenderScriptx86ABIFixups.cpp | 174 llvm::Instruction::BitCast, func, new_func_ptr_type); in fixupX86StructRetCalls()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 312 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 D | IRForTarget.cpp | 910 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 D | IRInterpreter.cpp | 267 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 D | BPFAbstractMemberAccess.cpp | 163 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 D | TargetFolder.h | 211 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | CaptureTracking.cpp | 394 case Instruction::BitCast: in DetermineUseCaptureKind()
|