| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | SVEIntrinsicOpts.cpp | 317 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore() local 318 if (!BitCast) in optimizePredicateStore() 322 if (BitCast->getOperand(0)->getType() != PredType) in optimizePredicateStore() 331 Builder.CreateStore(BitCast->getOperand(0), PtrBitCast); in optimizePredicateStore() 336 if (BitCast->getNumUses() == 0) in optimizePredicateStore() 337 BitCast->eraseFromParent(); in optimizePredicateStore() 362 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad() local 363 if (!BitCast || BitCast->getType() != PredType) in optimizePredicateLoad() 367 auto *IntrI = dyn_cast<IntrinsicInst>(BitCast->getOperand(0)); in optimizePredicateLoad() 393 BitCast->replaceAllUsesWith(LoadPred); in optimizePredicateLoad() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Instructions.cpp | 381 if (CE->getOpcode() == BitCast) in hasFnAttrOnCalledFunction() 393 if (CE->getOpcode() == BitCast) in hasFnAttrOnCalledFunction() 412 if (CE->getOpcode() == BitCast) in getFnAttrOnCalledFunction() 3056 case Instruction::BitCast: in isIntegerCast() 3064 if (getOpcode() != Instruction::BitCast) in isLosslessCast() 3106 case Instruction::BitCast: in isNoopCast() 3190 bool IsFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair() 3191 bool IsSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair() 3252 return Instruction::BitCast; in isEliminableCastPair() 3259 return Instruction::BitCast; in isEliminableCastPair() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 562 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local 564 Builder.CreateAlignedLoad(VectorTy, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 577 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local 579 Builder.CreateAlignedLoad(VectorTy, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 584 Builder.CreateAlignedStore(NewVecValue, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 605 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local 607 Builder.CreateAlignedLoad(VectorTy, BitCast, Alloca->getAlign()); in tryPromoteAllocaToVector() 609 Builder.CreateAlignedStore(NewVecValue, BitCast, Alloca->getAlign()); 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()
|
| /openbsd-src/gnu/llvm/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);
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 984 Value *BitCast = Builder.CreateBitCast(VecOp, BitCastTo); in visitTrunc() local 985 return ExtractElementInst::Create(BitCast, Builder.getInt32(NewIdx)); in visitTrunc() 2290 case Instruction::BitCast: in collectInsertionElements() 2364 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() argument 2367 if (!match(BitCast.getOperand(0), in canonicalizeBitCastExtElt() 2373 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt() 2385 return CastInst::Create(Instruction::BitCast, VecOp, DestType); in canonicalizeBitCastExtElt() 2391 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument 2393 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic() 2396 if (!match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || in foldBitCastBitwiseLogic() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | InferAddressSpaces.cpp | 306 case Instruction::BitCast: in isAddressExpression() 336 case Instruction::BitCast: in getPointerOperands() 629 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace() 691 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace() 1252 NewV = CastInst::Create(Instruction::BitCast, NewV, in rewriteWithNewAddressSpaces()
|
| H A D | SpeculativeExecution.cpp | 230 case Instruction::BitCast: in ComputeSpeculationCost()
|
| /openbsd-src/gnu/llvm/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()
|
| H A D | Operator.h | 546 : public ConcreteOperator<Operator, Instruction::BitCast> {
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 99 CastInst::Create(Instruction::BitCast, Operand, in maybeGenerateBitcast()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/ |
| H A D | RenderScriptx86ABIFixups.cpp | 174 llvm::Instruction::BitCast, func, new_func_ptr_type); in fixupX86StructRetCalls()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ReturnProtectorLowering.cpp | 87 case Instruction::BitCast: in hasAddressTaken()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | IRForTarget.cpp | 911 ocr_initializer_expr->getOpcode() != Instruction::BitCast) in RewriteObjCClassReference() 1143 case Instruction::BitCast: in MaybeHandleVariable() 1428 if (CE->getOpcode() != Instruction::BitCast) in isGuardVariableRef() 1504 case Instruction::BitCast: { in UnfoldConstant()
|
| /openbsd-src/gnu/llvm/lldb/source/Expression/ |
| H A D | IRInterpreter.cpp | 292 case Instruction::BitCast: in ResolveConstantValue() 492 case Instruction::BitCast: in CanResolveConstant() 549 case Instruction::BitCast: in CanInterpret() 919 case Instruction::BitCast: in Interpret()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | TargetFolder.h | 211 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | CaptureTracking.cpp | 379 case Instruction::BitCast: in DetermineUseCaptureKind()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86LowerAMXIntrinsics.cpp | 221 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops() local 222 Value *Vec = BitCast->getOperand(0); in createTileLoadStoreLoops()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | FunctionAttrs.cpp | 605 case Instruction::BitCast: in determinePointerAccessAttrs() 1034 case Instruction::BitCast: in isFunctionMallocLike() 1145 case Instruction::BitCast: in isReturnNonNull()
|