Home
last modified time | relevance | path

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

1234

/freebsd-14.2/contrib/llvm-project/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()
333 if (BitCast->getNumUses() == 0) in optimizePredicateStore()
334 BitCast->eraseFromParent(); in optimizePredicateStore()
359 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad() local
360 if (!BitCast || BitCast->getType() != PredType) in optimizePredicateLoad()
364 auto *IntrI = dyn_cast<IntrinsicInst>(BitCast->getOperand(0)); in optimizePredicateLoad()
387 BitCast->replaceAllUsesWith(LoadPred); in optimizePredicateLoad()
388 BitCast->eraseFromParent(); in optimizePredicateLoad()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp309 if (auto *BitCast = dyn_cast_or_null<BitCastInst>(Next)) { in versionCallSite() local
310 assert(BitCast->getOperand(0) == OrigInst && in versionCallSite()
312 auto NewBitCast = BitCast->clone(); in versionCallSite()
316 Next = BitCast->getNextNode(); in versionCallSite()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp430 if (CE->getOpcode() == BitCast) in hasFnAttrOnCalledFunction()
442 if (CE->getOpcode() == BitCast) in hasFnAttrOnCalledFunction()
461 if (CE->getOpcode() == BitCast) in getFnAttrOnCalledFunction()
3058 case Instruction::BitCast: in isIntegerCast()
3091 case Instruction::BitCast: in isNoopCast()
3237 return Instruction::BitCast; in isEliminableCastPair()
3244 return Instruction::BitCast; in isEliminableCastPair()
3280 return Instruction::BitCast; in isEliminableCastPair()
3623 return BitCast; in getCastOpcode()
3689 return BitCast; in getCastOpcode()
[all …]
H A DConstants.cpp1471 case Instruction::BitCast: in getWithOperands()
1975 case Instruction::BitCast: in getCast()
2058 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) && in getBitCast()
2065 return getFoldedCast(Instruction::BitCast, C, DstTy, OnlyIfReduced); in getBitCast()
2191 case Instruction::BitCast: in isDesirableCastOp()
2213 case Instruction::BitCast: in isSupportedCastOp()
3238 case Instruction::BitCast: in getAsInstruction()
H A DGlobals.cpp358 case Instruction::BitCast: in findBaseObject()
H A DValue.cpp654 } else if (Operator::getOpcode(V) == Instruction::BitCast) { in stripPointerCastsAndOffsets()
766 } else if (Operator::getOpcode(V) == Instruction::BitCast || in stripAndAccumulateConstantOffsets()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp856 Value *BitCast = Builder.CreateBitCast(VecOp, BitCastTo); in visitTrunc() local
2179 case Instruction::BitCast: in collectInsertionElements()
2256 if (!match(BitCast.getOperand(0), in canonicalizeBitCastExtElt()
2262 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt()
2280 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument
2282 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic()
2285 if (!match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || in foldBitCastBitwiseLogic()
2352 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect() argument
2355 if (!match(BitCast.getOperand(0), in foldBitCastSelect()
2361 Type *DestTy = BitCast.getType(); in foldBitCastSelect()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h113 if (auto *BitCast = dyn_cast<BitCastInst>(V)) variable
114 if (!OneUseOnly || BitCast->hasOneUse())
115 return BitCast->getOperand(0);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp100 CastInst::Create(Instruction::BitCast, Operand, in maybeGenerateBitcast()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp86 case Instruction::BitCast: in enqueueUsers()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp316 case Instruction::BitCast: in isAddressExpression()
346 case Instruction::BitCast: in getPointerOperands()
660 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
722 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
H A DSpeculativeExecution.cpp230 case Instruction::BitCast: in ComputeSpeculationCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp164 case Instruction::BitCast: in inferScalarTypeForRecipe()
/freebsd-14.2/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp293 case Instruction::BitCast: in ResolveConstantValue()
496 case Instruction::BitCast: in CanResolveConstant()
553 case Instruction::BitCast: in CanInterpret()
949 case Instruction::BitCast: in Interpret()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp165 void traceBitCast(BitCastInst *BitCast, CallInst *Parent,
573 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast() argument
576 for (User *U : BitCast->users()) { in traceBitCast()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DCaptureTracking.cpp370 case Instruction::BitCast: in DetermineUseCaptureKind()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp218 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops() local
219 Value *Vec = BitCast->getOperand(0); in createTileLoadStoreLoops()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp637 case Instruction::BitCast: in determinePointerAccessAttrs()
1077 case Instruction::BitCast: in isFunctionMallocLike()
1188 case Instruction::BitCast: in isReturnNonNull()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRDynamicChecks.cpp437 case llvm::Instruction::BitCast: in GetFunction()
H A DIRForTarget.cpp986 case Instruction::BitCast: in MaybeHandleVariable()
1335 case Instruction::BitCast: { in UnfoldConstant()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h538 : public ConcreteOperator<Operator, Instruction::BitCast> {
H A DInstruction.def195 HANDLE_CAST_INST(49, BitCast , BitCastInst ) // Type cast
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp314 case Instruction::BitCast: in HasAddressTaken()
H A DMachineFunction.cpp1446 A = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(A), in CanShareConstantPoolEntry()
1452 B = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(B), in CanShareConstantPoolEntry()

1234