Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp317 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 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()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DInstructions.cpp381 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 DAddress.h157 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 DAMDGPUPromoteAlloca.cpp562 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 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()
/openbsd-src/gnu/llvm/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);
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp984 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 DInferAddressSpaces.cpp306 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 DSpeculativeExecution.cpp230 case Instruction::BitCast: in ComputeSpeculationCost()
/openbsd-src/gnu/llvm/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()
H A DOperator.h546 : public ConcreteOperator<Operator, Instruction::BitCast> {
/openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp99 CastInst::Create(Instruction::BitCast, Operand, in maybeGenerateBitcast()
/openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp174 llvm::Instruction::BitCast, func, new_func_ptr_type); in fixupX86StructRetCalls()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DReturnProtectorLowering.cpp87 case Instruction::BitCast: in hasAddressTaken()
/openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp911 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 DIRInterpreter.cpp292 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 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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetFolder.h211 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DCaptureTracking.cpp379 case Instruction::BitCast: in DetermineUseCaptureKind()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp221 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 DFunctionAttrs.cpp605 case Instruction::BitCast: in determinePointerAccessAttrs()
1034 case Instruction::BitCast: in isFunctionMallocLike()
1145 case Instruction::BitCast: in isReturnNonNull()

12345