Home
last modified time | relevance | path

Searched refs:SrcVal (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp293 static Value *getStoreValueForLoadHelper(Value *SrcVal, unsigned Offset, in getStoreValueForLoadHelper() argument
296 LLVMContext &Ctx = SrcVal->getType()->getContext(); in getStoreValueForLoadHelper()
301 if (SrcVal->getType()->isPointerTy() && LoadTy->isPointerTy() && in getStoreValueForLoadHelper()
302 cast<PointerType>(SrcVal->getType())->getAddressSpace() == in getStoreValueForLoadHelper()
304 return SrcVal; in getStoreValueForLoadHelper()
308 (DL.getTypeSizeInBits(SrcVal->getType()).getFixedValue() + 7) / 8; in getStoreValueForLoadHelper()
312 if (SrcVal->getType()->isPtrOrPtrVectorTy()) in getStoreValueForLoadHelper()
313 SrcVal = in getStoreValueForLoadHelper()
314 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
315 if (!SrcVal->getType()->isIntegerTy()) in getStoreValueForLoadHelper()
[all …]
H A DSimplifyCFG.cpp5185 Value *SrcVal = DestPN.getIncomingValue(Idx); in removeEmptyCleanup() local
5186 PHINode *SrcPN = dyn_cast<PHINode>(SrcVal); in removeEmptyCleanup()
5191 NeedPHITranslation ? SrcPN->getIncomingValueForBlock(Pred) : SrcVal; in removeEmptyCleanup()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h203 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
205 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
207 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
209 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
211 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
213 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
215 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
217 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
219 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
221 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all …]
H A DExecution.cpp1231 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
1233 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeTruncInst()
1234 Type *SrcTy = SrcVal->getType(); in executeTruncInst()
1251 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
1253 Type *SrcTy = SrcVal->getType(); in executeSExtInst()
1254 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSExtInst()
1271 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
1273 Type *SrcTy = SrcVal->getType(); in executeZExtInst()
1274 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeZExtInst()
1292 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLoadStoreOpt.cpp651 getTruncStoreByteOffset(GStore &Store, Register &SrcVal, in getTruncStoreByteOffset() argument
668 if (!SrcVal.isValid() || TruncVal == SrcVal) { in getTruncStoreByteOffset()
669 if (!SrcVal.isValid()) in getTruncStoreByteOffset()
670 SrcVal = TruncVal; in getTruncStoreByteOffset()
681 if (SrcVal.isValid() && FoundSrcVal != SrcVal) in getTruncStoreByteOffset()
684 if (!SrcVal.isValid()) in getTruncStoreByteOffset()
685 SrcVal = FoundSrcVal; in getTruncStoreByteOffset()
686 else if (MRI.getType(SrcVal) != MRI.getType(FoundSrcVal)) in getTruncStoreByteOffset()
H A DLegalizerHelper.cpp2759 const APInt &SrcVal = SrcMO.getCImm()->getValue(); in widenScalar() local
2761 ? SrcVal.sext(WideTy.getSizeInBits()) in widenScalar()
2762 : SrcVal.zext(WideTy.getSizeInBits()); in widenScalar()
3061 const APInt &SrcVal = SrcMO.getCImm()->getValue(); in widenScalar() local
3063 const APInt Val = SrcVal.sext(WideTy.getSizeInBits()); in widenScalar()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DVNCoercion.h77 Value *getValueForLoad(Value *SrcVal, unsigned Offset, Type *LoadTy,
81 Constant *getConstantValueForLoad(Constant *SrcVal, unsigned Offset,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp534 llvm::Value *SrcVal = this->CGF->Builder.CreateLoad(SrcAddr, false); in flushTrivialFields() local
535 this->CGF->Builder.CreateStore(SrcVal, DstAddr, false); in flushTrivialFields()
567 RValue SrcVal = this->CGF->EmitLoadOfLValue(SrcLV, SourceLocation()); in visitVolatileTrivial() local
568 this->CGF->EmitStoreThroughLValue(SrcVal, DstLV); in visitVolatileTrivial()
681 llvm::Value *SrcVal = CGF->EmitLoadOfScalar( in visitARCStrong() local
683 llvm::Value *Val = CGF->EmitARCRetain(QT, SrcVal); in visitARCStrong()
712 llvm::Value *SrcVal = in visitARCStrong() local
715 CGF->EmitStoreOfScalar(SrcVal, CGF->MakeAddrLValue(Addrs[DstIdx], QT), in visitARCStrong()
743 llvm::Value *SrcVal = CGF->EmitLoadOfScalar( in visitARCStrong() local
745 CGF->EmitARCStoreStrong(CGF->MakeAddrLValue(Addrs[DstIdx], QT), SrcVal, in visitARCStrong()
[all …]
H A DCGExpr.cpp2495 llvm::Value *SrcVal = Src.getScalarVal(); in EmitStoreThroughBitfieldLValue() local
2498 SrcVal = Builder.CreateIntCast(SrcVal, Ptr.getElementType(), in EmitStoreThroughBitfieldLValue()
2500 llvm::Value *MaskedVal = SrcVal; in EmitStoreThroughBitfieldLValue()
2517 SrcVal = Builder.CreateAnd( in EmitStoreThroughBitfieldLValue()
2518 SrcVal, llvm::APInt::getLowBitsSet(StorageSize, Info.Size), in EmitStoreThroughBitfieldLValue()
2520 MaskedVal = SrcVal; in EmitStoreThroughBitfieldLValue()
2522 SrcVal = Builder.CreateShl(SrcVal, Offset, "bf.shl"); in EmitStoreThroughBitfieldLValue()
2530 SrcVal = Builder.CreateOr(Val, SrcVal, "bf.set"); in EmitStoreThroughBitfieldLValue()
2544 Builder.CreateStore(SrcVal, Ptr, Dst.isVolatileQualified()); in EmitStoreThroughBitfieldLValue()
2584 llvm::Value *SrcVal = Src.getScalarVal(); in EmitStoreThroughExtVectorComponentLValue() local
[all …]
H A DCGClass.cpp2409 llvm::Value *SrcVal = Builder.CreateBitCast(Val, t); in EmitSynthesizedCXXCopyCtorCall() local
2410 Args.add(RValue::get(SrcVal), QT); in EmitSynthesizedCXXCopyCtorCall()
H A DMicrosoftCXXABI.cpp4136 llvm::Value *SrcVal = in getAddrOfCXXCtorClosure() local
4146 if (SrcVal) in getAddrOfCXXCtorClosure()
4147 Args.add(RValue::get(SrcVal), SrcParam.getType()); in getAddrOfCXXCtorClosure()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DInstrEmitter.cpp1254 SDValue SrcVal = Node->getOperand(2); in EmitSpecialNode() local
1255 if (DestReg.isVirtual() && SrcVal.isMachineOpcode() && in EmitSpecialNode()
1256 SrcVal.getMachineOpcode() == TargetOpcode::IMPLICIT_DEF) { in EmitSpecialNode()
1264 if (RegisterSDNode *R = dyn_cast<RegisterSDNode>(SrcVal)) in EmitSpecialNode()
1267 SrcReg = getVR(SrcVal, VRBaseMap); in EmitSpecialNode()
H A DSelectionDAG.cpp7872 const Value *SrcVal = dyn_cast_if_present<const Value *>(SrcPtrInfo.V); in getMemcpyLoadsAndStores() local
7874 AA && SrcVal && in getMemcpyLoadsAndStores()
7875 AA->pointsToConstantMemory(MemoryLocation(SrcVal, Size, AAInfo)); in getMemcpyLoadsAndStores()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp2821 SDValue SrcVal = N->getOperand(1); in SelectSTACKRESTORE() local
2822 if (SrcVal.getValueType() != MVT::i32) { in SelectSTACKRESTORE()
2831 if (SrcVal.getOpcode() == AMDGPUISD::WAVE_ADDRESS) { in SelectSTACKRESTORE()
2832 CopyVal = SrcVal.getOperand(0); in SelectSTACKRESTORE()
2838 SrcVal = SDValue(CurDAG->getMachineNode(AMDGPU::V_READFIRSTLANE_B32, SL, in SelectSTACKRESTORE()
2839 MVT::i32, SrcVal), in SelectSTACKRESTORE()
2844 {SrcVal, Log2WaveSize}), in SelectSTACKRESTORE()
3108 unsigned SrcVal = C->getZExtValue(); in SelectWMMAOpSelVOP3PMods() local
3109 if (SrcVal == 1) in SelectWMMAOpSelVOP3PMods()
H A DAMDGPUCodeGenPrepare.cpp2236 Value *SrcVal = Sqrt.getOperand(0); in visitSqrt() local
2237 bool CanTreatAsDAZ = canIgnoreDenormalInput(SrcVal, &Sqrt); in visitSqrt()
2246 extractValues(Builder, SrcVals, SrcVal); in visitSqrt()
H A DSIISelLowering.cpp15000 SDValue SrcVal = Node->getOperand(2); in legalizeTargetIndependentNode() local
15004 if (SrcVal.getValueType() == MVT::i1 && DestReg->getReg().isPhysical()) { in legalizeTargetIndependentNode()
15012 = DAG.getCopyToReg(Node->getOperand(0), SL, VReg, SrcVal, in legalizeTargetIndependentNode()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4290 SDValue SrcVal = Op.getOperand(IsStrict ? 1 : 0); in LowerFP_ROUND() local
4291 EVT SrcVT = SrcVal.getValueType(); in LowerFP_ROUND()
4303 SDValue Narrow = SrcVal; in LowerFP_ROUND()
4336 SrcVal, SrcVal, ISD::SETUO); in LowerFP_ROUND()
4457 SDValue SrcVal = Op.getOperand(IsStrict ? 1 : 0); in LowerFP_TO_INT() local
4459 if (SrcVal.getValueType().isVector()) in LowerFP_TO_INT()
4463 if ((SrcVal.getValueType() == MVT::f16 && !Subtarget->hasFullFP16()) || in LowerFP_TO_INT()
4464 SrcVal.getValueType() == MVT::bf16) { in LowerFP_TO_INT()
4469 {Op.getOperand(0), SrcVal}); in LowerFP_TO_INT()
4475 DAG.getNode(ISD::FP_EXTEND, dl, MVT::f32, SrcVal)); in LowerFP_TO_INT()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5903 SDValue SrcVal = Op.getOperand(IsStrict ? 1 : 0); in LowerFP_TO_INT() local
5905 if (isUnsupportedFloatingType(SrcVal.getValueType())) { in LowerFP_TO_INT()
5909 LC = RTLIB::getFPTOSINT(SrcVal.getValueType(), in LowerFP_TO_INT()
5912 LC = RTLIB::getFPTOUINT(SrcVal.getValueType(), in LowerFP_TO_INT()
5918 std::tie(Result, Chain) = makeLibCall(DAG, LC, Op.getValueType(), SrcVal, in LowerFP_TO_INT()
5929 Loc, Op.getValueType(), SrcVal); in LowerFP_TO_INT()
20887 SDValue SrcVal = Op.getOperand(IsStrict ? 1 : 0); in LowerFP_EXTEND() local
20889 const unsigned SrcSz = SrcVal.getValueType().getSizeInBits(); in LowerFP_EXTEND()
20905 Loc, Op.getValueType(), SrcVal); in LowerFP_EXTEND()
20926 SrcVal = DAG.getNode(ISD::STRICT_FP_EXTEND, Loc, in LowerFP_EXTEND()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp4176 Constant *SrcVal; in parseValID() local
4179 parseGlobalTypeAndValue(SrcVal) || in parseValID()
4184 if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy)) in parseValID()
4186 getTypeString(SrcVal->getType()) + "' to '" + in parseValID()
4189 SrcVal, DestTy); in parseValID()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp2817 const Value *SrcVal = II->getArgOperand(0); in fastLowerIntrinsicCall() local
2818 Register SrcReg = getRegForValue(SrcVal); in fastLowerIntrinsicCall()