Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUOpenCLEnqueuedBlockLowering.cpp135 auto *BitCast = cast<ConstantExpr>(UU); in runOnModule() local
136 auto *NewPtr = ConstantExpr::getPointerCast(GV, BitCast->getType()); in runOnModule()
137 BitCast->replaceAllUsesWith(NewPtr); in runOnModule()
H A DAMDGPUPromoteAlloca.cpp337 case Instruction::BitCast: in canVectorizeInst()
429 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
430 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
444 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
445 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
449 Builder.CreateStore(NewVecValue, BitCast); in tryPromoteAllocaToVector()
453 case Instruction::BitCast: in tryPromoteAllocaToVector()
H A DAMDGPUAtomicOptimizer.cpp267 Value *const BitCast = B.CreateBitCast(Exec, VecTy); in optimizeAtomic() local
268 Value *const ExtractLo = B.CreateExtractElement(BitCast, B.getInt32(0)); in optimizeAtomic()
269 Value *const ExtractHi = B.CreateExtractElement(BitCast, B.getInt32(1)); in optimizeAtomic()
H A DAMDGPUCodeGenPrepare.cpp809 Value *BitCast= Builder.CreateBitCast(I.getPointerOperand(), PT); in visitLoadInst() local
810 LoadInst *WidenLoad = Builder.CreateLoad(BitCast); in visitLoadInst()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp87 case Instruction::BitCast: in isSimpleEnoughValueToCommitHelper()
167 } else if (CE->getOpcode() == Instruction::BitCast && in isSimpleEnoughPointerToCommit()
206 case Instruction::BitCast: in ComputeLoadResult()
239 if (!CE || CE->getOpcode() != Instruction::BitCast || in getCalleeWithFormalArgs()
276 if (!RV || !CE || CE->getOpcode() != Instruction::BitCast) in castCallResultIfNeeded()
328 if (CE->getOpcode() == Instruction::BitCast) { in EvaluateBlock()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DInstructions.cpp2284 case Instruction::BitCast: in isIntegerCast()
2292 if (getOpcode() != Instruction::BitCast) in isLosslessCast()
2333 case Instruction::BitCast: in isNoopCast()
2475 return Instruction::BitCast; in isEliminableCastPair()
2482 return Instruction::BitCast; in isEliminableCastPair()
2492 return Instruction::BitCast; in isEliminableCastPair()
2508 return Instruction::BitCast; in isEliminableCastPair()
2516 return Instruction::BitCast; in isEliminableCastPair()
2919 return BitCast; in getCastOpcode()
2985 return BitCast; in getCastOpcode()
[all …]
H A DValue.cpp497 } else if (Operator::getOpcode(V) == Instruction::BitCast || in stripPointerCastsAndOffsets()
570 } else if (Operator::getOpcode(V) == Instruction::BitCast) { in stripAndAccumulateInBoundsConstantOffsets()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp223 case Instruction::BitCast: in isAddressExpression()
244 case Instruction::BitCast: in getPointerOperands()
472 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
520 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
984 NewV = CastInst::Create(Instruction::BitCast, NewV, in rewriteWithNewAddressSpaces()
H A DSpeculativeExecution.cpp229 case Instruction::BitCast: in ComputeSpeculationCost()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1958 case Instruction::BitCast: in collectInsertionElements()
2030 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() argument
2039 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt()
2051 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument
2053 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic()
2056 !match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || in foldBitCastBitwiseLogic()
2097 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect() argument
2100 if (!match(BitCast.getOperand(0), in foldBitCastSelect()
2106 Type *DestTy = BitCast.getType(); in foldBitCastSelect()
2121 auto *Sel = cast<Instruction>(BitCast.getOperand(0)); in foldBitCastSelect()
[all …]
H A DInstCombineInternal.h120 if (auto *BitCast = dyn_cast<BitCastInst>(V)) variable
121 if (!OneUseOnly || BitCast->hasOneUse())
122 return BitCast->getOperand(0);
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp666 } else if (nsstring_expr->getOpcode() == Instruction::BitCast) { in RewriteObjCConstStrings()
994 ocr_initializer_expr->getOpcode() != Instruction::BitCast) in RewriteObjCClassReference()
1319 case Instruction::BitCast: in MaybeHandleVariable()
1640 if (CE->getOpcode() != Instruction::BitCast) in isGuardVariableRef()
1730 case Instruction::BitCast: { in UnfoldConstant()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp184 llvm::Instruction::BitCast, func, new_func_ptr_type); in fixupX86StructRetCalls()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DCaptureTracking.cpp325 case Instruction::BitCast: in PointerMayBeCaptured()
/freebsd-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp119 case Instruction::BitCast: in createReplacementInstr()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp462 case Instruction::BitCast: in determinePointerReadAttrs()
867 case Instruction::BitCast: in isFunctionMallocLike()
980 case Instruction::BitCast: in isReturnNonNull()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Expression/
H A DIRInterpreter.cpp264 case Instruction::BitCast: in ResolveConstantValue()
466 case Instruction::BitCast: in CanResolveConstant()
521 case Instruction::BitCast: in CanInterpret()
889 case Instruction::BitCast: in Interpret()
H A DIRDynamicChecks.cpp473 case llvm::Instruction::BitCast: in GetFunction()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstantFolder.h205 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DNoFolder.h269 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DInstruction.def195 HANDLE_CAST_INST(48, BitCast , BitCastInst ) // Type cast
H A DOperator.h568 : public ConcreteOperator<Operator, Instruction::BitCast> {
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetFolder.h190 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h647 if (Opcode == Instruction::BitCast || Opcode == Instruction::Trunc)
684 if (Opcode == Instruction::BitCast)
749 if (Opcode == Instruction::BitCast)
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DMachineFunction.cpp991 A = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(A), in CanShareConstantPoolEntry()
997 B = ConstantFoldCastOperand(Instruction::BitCast, const_cast<Constant *>(B), in CanShareConstantPoolEntry()

1234