| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | SVEIntrinsicOpts.cpp | 315 auto *BitCast = dyn_cast<BitCastInst>(IntrI->getOperand(0)); in optimizePredicateStore() local 316 if (!BitCast) in optimizePredicateStore() 320 if (BitCast->getOperand(0)->getType() != PredType) in optimizePredicateStore() 326 Builder.CreateStore(BitCast->getOperand(0), Store->getPointerOperand()); in optimizePredicateStore() 331 if (BitCast->use_empty()) in optimizePredicateStore() 332 BitCast->eraseFromParent(); in optimizePredicateStore() 357 auto *BitCast = dyn_cast<BitCastInst>(I); in optimizePredicateLoad() local 358 if (!BitCast || BitCast->getType() != PredType) in optimizePredicateLoad() 362 auto *IntrI = dyn_cast<IntrinsicInst>(BitCast->getOperand(0)); in optimizePredicateLoad() 385 BitCast->replaceAllUsesWith(LoadPred); in optimizePredicateLoad() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILLegalizePass.cpp | 520 if (auto *BitCast = dyn_cast<BitCastInst>(&I)) { in legalizeGetHighLowi64Bytes() local 521 if (BitCast->getDestTy() == in legalizeGetHighLowi64Bytes() 523 BitCast->getSrcTy()->isIntegerTy(64)) { in legalizeGetHighLowi64Bytes() 524 ToRemove.push_back(BitCast); in legalizeGetHighLowi64Bytes() 525 ReplacedValues[BitCast] = BitCast->getOperand(0); in legalizeGetHighLowi64Bytes()
|
| H A D | DXILPrepare.cpp | 202 CastInst::Create(Instruction::BitCast, Operand, in maybeGenerateBitcast() 296 CastInst::Create(Instruction::BitCast, PtrOperand, in runOnModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 307 if (auto *BitCast = dyn_cast_or_null<BitCastInst>(Next)) { in versionCallSiteWithCond() local 308 assert(BitCast->getOperand(0) == OrigInst && in versionCallSiteWithCond() 310 auto NewBitCast = BitCast->clone(); in versionCallSiteWithCond() 314 Next = BitCast->getNextNode(); in versionCallSiteWithCond()
|
| H A D | IRNormalizer.cpp | 495 if (auto *BitCast = dyn_cast<BitCastInst>(Definition)) { in reorderDefinition() local 496 if (auto *Call = dyn_cast<CallInst>(BitCast->getOperand(0))) { in reorderDefinition()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 2766 case Instruction::BitCast: in isIntegerCast() 2799 case Instruction::BitCast: in isNoopCast() 2883 bool IsFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair() 2884 bool IsSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair() 2939 return Instruction::BitCast; in isEliminableCastPair() 2946 return Instruction::BitCast; in isEliminableCastPair() 2956 return Instruction::BitCast; in isEliminableCastPair() 2974 return Instruction::BitCast; in isEliminableCastPair() 2982 return Instruction::BitCast; in isEliminableCastPair() 3051 case BitCast: in Create() [all …]
|
| H A D | Constants.cpp | 1572 case Instruction::BitCast: in getWithOperands() 2230 case Instruction::BitCast: in getCast() 2313 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) && in getBitCast() 2320 return getFoldedCast(Instruction::BitCast, C, DstTy, OnlyIfReduced); in getBitCast() 2440 case Instruction::BitCast: in isDesirableCastOp() 2462 case Instruction::BitCast: in isSupportedCastOp() 3406 case Instruction::BitCast: in getAsInstruction()
|
| H A D | Value.cpp | 666 } else if (Operator::getOpcode(V) == Instruction::BitCast) { in stripPointerCastsAndOffsets() 780 } else if (Operator::getOpcode(V) == Instruction::BitCast || in stripAndAccumulateConstantOffsets()
|
| H A D | Globals.cpp | 408 case Instruction::BitCast: in findBaseObject()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 120 if (auto *BitCast = dyn_cast<BitCastInst>(V)) variable 121 if (!OneUseOnly || BitCast->hasOneUse()) 122 return BitCast->getOperand(0);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 190 if (CI.getOpcode() != Instruction::BitCast || in commonCastTransforms() 510 Value *BitCast = IC.Builder.CreateBitCast(VecOp, BitCastTo); in foldVecExtTruncToExtElt() local 511 return ExtractElementInst::Create(BitCast, IC.Builder.getInt32(NewIdx)); in foldVecExtTruncToExtElt() 2331 case Instruction::BitCast: in collectInsertionElements() 2410 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() argument 2413 if (!match(BitCast.getOperand(0), in canonicalizeBitCastExtElt() 2419 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt() 2431 return CastInst::Create(Instruction::BitCast, VecOp, DestType); in canonicalizeBitCastExtElt() 2437 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument 2439 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 174 while (auto *BitCast = dyn_cast<BitCastInst>(V)) in peekThroughBitcasts() local 175 V = BitCast->getOperand(0); in peekThroughBitcasts() 842 TTI.getCastInstrCost(Instruction::BitCast, DstVecTy, LHSSrc->getType(), in foldBitOpOfBitcasts() 844 TTI.getCastInstrCost(Instruction::BitCast, DstVecTy, RHSSrc->getType(), in foldBitOpOfBitcasts() 848 TTI.getCastInstrCost(Instruction::BitCast, DstVecTy, SrcVecTy, in foldBitOpOfBitcasts() 941 (NumOps * TTI.getCastInstrCost(Instruction::BitCast, NewShuffleTy, SrcTy, in foldBitcastShuffle() 946 TTI.getCastInstrCost(Instruction::BitCast, DestTy, OldShuffleTy, in foldBitcastShuffle() 1919 OldCost += 2 * TTI.getCastInstrCost(Instruction::BitCast, MaskIntTy, MaskTy, in foldConcatOfBoolMasks() 1925 NewCost += TTI.getCastInstrCost(Instruction::BitCast, ConcatIntTy, ConcatTy, in foldConcatOfBoolMasks() 2330 assert((NumDstElts == NumSrcElts || Opcode == Instruction::BitCast) && in foldShuffleOfCastops() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteKernelArguments.cpp | 86 case Instruction::BitCast: in enqueueUsers()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SpeculativeExecution.cpp | 230 case Instruction::BitCast: in ComputeSpeculationCost()
|
| H A D | InferAddressSpaces.cpp | 326 case Instruction::BitCast: in isAddressExpression() 359 case Instruction::BitCast: in getPointerOperands() 720 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace() 782 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Values.def | 127 OP(BitCast) \
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 311 if (auto *BitCast = dyn_cast<BitCastInst>(Ptr)) { in lookThroughBitcast() local 312 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast() 313 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast() 317 Ptr = BitCast->getOperand(0); in lookThroughBitcast()
|
| /freebsd/contrib/llvm-project/lldb/source/Expression/ |
| H A D | IRInterpreter.cpp | 291 case Instruction::BitCast: in ResolveConstantValue() 494 case Instruction::BitCast: in CanResolveConstant() 549 case Instruction::BitCast: in CanInterpret() 940 case Instruction::BitCast: in Interpret()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFAbstractMemberAccess.cpp | 165 void traceBitCast(BitCastInst *BitCast, CallInst *Parent, 565 void BPFAbstractMemberAccess::traceBitCast(BitCastInst *BitCast, in traceBitCast() argument 568 for (User *U : BitCast->users()) { in traceBitCast()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/ |
| H A D | Legality.cpp | 90 case Instruction::Opcode::BitCast: { in notVectorizableBasedOnOpcodesAndTypes()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | IRDynamicChecks.cpp | 354 case llvm::Instruction::BitCast: in GetFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86LowerAMXIntrinsics.cpp | 216 auto *BitCast = cast<BitCastInst>(Tile); in createTileLoadStoreLoops() local 217 Value *Vec = BitCast->getOperand(0); in createTileLoadStoreLoops()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CaptureTracking.cpp | 356 case Instruction::BitCast: in DetermineUseCaptureKind()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instruction.def | 195 HANDLE_CAST_INST(49, BitCast , BitCastInst ) // Type cast
|
| H A D | Operator.h | 599 : public ConcreteOperator<Operator, Instruction::BitCast> {
|