/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | VNCoercion.cpp | 306 static T *getStoreValueForLoadHelper(T *SrcVal, unsigned Offset, Type *LoadTy, in getStoreValueForLoadHelper() argument 309 LLVMContext &Ctx = SrcVal->getType()->getContext(); in getStoreValueForLoadHelper() 314 if (SrcVal->getType()->isPointerTy() && LoadTy->isPointerTy() && in getStoreValueForLoadHelper() 315 cast<PointerType>(SrcVal->getType())->getAddressSpace() == in getStoreValueForLoadHelper() 317 return SrcVal; in getStoreValueForLoadHelper() 320 uint64_t StoreSize = (DL.getTypeSizeInBits(SrcVal->getType()) + 7) / 8; in getStoreValueForLoadHelper() 324 if (SrcVal->getType()->isPtrOrPtrVectorTy()) in getStoreValueForLoadHelper() 325 SrcVal = Helper.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper() 326 if (!SrcVal->getType()->isIntegerTy()) in getStoreValueForLoadHelper() 327 SrcVal = Helper.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper() [all …]
|
D | SimplifyCFG.cpp | 3941 Value *SrcVal = DestPN->getIncomingValue(Idx); in removeEmptyCleanup() local 3942 PHINode *SrcPN = dyn_cast<PHINode>(SrcVal); in removeEmptyCleanup() 3961 DestPN->addIncoming(SrcVal, pred); in removeEmptyCleanup()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 203 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 …]
|
D | Execution.cpp | 1217 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument 1219 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeTruncInst() 1220 Type *SrcTy = SrcVal->getType(); in executeTruncInst() 1237 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument 1239 Type *SrcTy = SrcVal->getType(); in executeSExtInst() 1240 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSExtInst() 1257 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument 1259 Type *SrcTy = SrcVal->getType(); in executeZExtInst() 1260 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeZExtInst() 1278 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 210 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy, 212 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy, 214 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy, 216 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy, 218 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy, 220 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy, 222 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy, 224 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy, 226 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy, 228 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy, [all …]
|
D | Execution.cpp | 935 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument 937 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeTruncInst() 944 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument 946 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSExtInst() 953 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument 955 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeZExtInst() 962 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument 964 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPTruncInst() 965 assert(SrcVal->getType()->isDoubleTy() && DstTy->isFloatTy() && in executeFPTruncInst() 971 GenericValue Interpreter::executeFPExtInst(Value *SrcVal, Type *DstTy, in executeFPExtInst() argument [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 222 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy, 224 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy, 226 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy, 228 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy, 230 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy, 232 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy, 234 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy, 236 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy, 238 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy, 240 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy, [all …]
|
D | Execution.cpp | 1218 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument 1220 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeTruncInst() 1221 Type *SrcTy = SrcVal->getType(); in executeTruncInst() 1238 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument 1240 Type *SrcTy = SrcVal->getType(); in executeSExtInst() 1241 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSExtInst() 1258 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument 1260 Type *SrcTy = SrcVal->getType(); in executeZExtInst() 1261 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeZExtInst() 1279 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | VNCoercion.h | 77 Value *getStoreValueForLoad(Value *SrcVal, unsigned Offset, Type *LoadTy, 81 Constant *getConstantStoreValueForLoad(Constant *SrcVal, unsigned Offset, 88 Value *getLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, Type *LoadTy, 92 Constant *getConstantLoadValueForLoad(Constant *SrcVal, unsigned Offset,
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | GVN.cpp | 943 static Value *GetStoreValueForLoad(Value *SrcVal, unsigned Offset, in GetStoreValueForLoad() argument 946 LLVMContext &Ctx = SrcVal->getType()->getContext(); in GetStoreValueForLoad() 948 uint64_t StoreSize = (TD.getTypeSizeInBits(SrcVal->getType()) + 7) / 8; in GetStoreValueForLoad() 955 if (SrcVal->getType()->isPointerTy()) in GetStoreValueForLoad() 956 SrcVal = Builder.CreatePtrToInt(SrcVal, TD.getIntPtrType(Ctx)); in GetStoreValueForLoad() 957 if (!SrcVal->getType()->isIntegerTy()) in GetStoreValueForLoad() 958 SrcVal = Builder.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize*8)); in GetStoreValueForLoad() 968 SrcVal = Builder.CreateLShr(SrcVal, ShiftAmt); in GetStoreValueForLoad() 971 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8)); in GetStoreValueForLoad() 973 return CoerceAvailableValueToLoadType(SrcVal, LoadTy, InsertPt, TD); in GetStoreValueForLoad() [all …]
|
D | ScalarReplAggregates.cpp | 625 LoadInst *SrcVal = Builder.CreateLoad(SrcPtr, "srcval"); in ConvertUsesToScalar() local 626 SrcVal->setAlignment(MTI->getAlignment()); in ConvertUsesToScalar() 627 Builder.CreateStore(SrcVal, NewAI); in ConvertUsesToScalar() 632 LoadInst *SrcVal = Builder.CreateLoad(NewAI, "srcval"); in ConvertUsesToScalar() local 642 StoreInst *NewStore = Builder.CreateStore(SrcVal, DstPtr); in ConvertUsesToScalar() 2190 Value *SrcVal = SI->getOperand(0); in RewriteStoreUserOfWholeAlloca() local 2197 if (TD->getTypeSizeInBits(SrcVal->getType()) != AllocaSizeBits) in RewriteStoreUserOfWholeAlloca() 2198 SrcVal = Builder.CreateZExt(SrcVal, in RewriteStoreUserOfWholeAlloca() 2217 Value *EltVal = SrcVal; in RewriteStoreUserOfWholeAlloca() 2263 Value *EltVal = SrcVal; in RewriteStoreUserOfWholeAlloca()
|
/external/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 986 static Value *GetStoreValueForLoad(Value *SrcVal, unsigned Offset, in GetStoreValueForLoad() argument 989 LLVMContext &Ctx = SrcVal->getType()->getContext(); in GetStoreValueForLoad() 991 uint64_t StoreSize = (DL.getTypeSizeInBits(SrcVal->getType()) + 7) / 8; in GetStoreValueForLoad() 998 if (SrcVal->getType()->getScalarType()->isPointerTy()) in GetStoreValueForLoad() 999 SrcVal = Builder.CreatePtrToInt(SrcVal, in GetStoreValueForLoad() 1000 DL.getIntPtrType(SrcVal->getType())); in GetStoreValueForLoad() 1001 if (!SrcVal->getType()->isIntegerTy()) in GetStoreValueForLoad() 1002 SrcVal = Builder.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize*8)); in GetStoreValueForLoad() 1012 SrcVal = Builder.CreateLShr(SrcVal, ShiftAmt); in GetStoreValueForLoad() 1015 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8)); in GetStoreValueForLoad() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGExpr.cpp | 1689 llvm::Value *SrcVal = Src.getScalarVal(); in EmitStoreThroughBitfieldLValue() local 1692 SrcVal = Builder.CreateIntCast(SrcVal, Ptr.getElementType(), in EmitStoreThroughBitfieldLValue() 1694 llvm::Value *MaskedVal = SrcVal; in EmitStoreThroughBitfieldLValue() 1705 SrcVal = Builder.CreateAnd(SrcVal, in EmitStoreThroughBitfieldLValue() 1709 MaskedVal = SrcVal; in EmitStoreThroughBitfieldLValue() 1711 SrcVal = Builder.CreateShl(SrcVal, Info.Offset, "bf.shl"); in EmitStoreThroughBitfieldLValue() 1721 SrcVal = Builder.CreateOr(Val, SrcVal, "bf.set"); in EmitStoreThroughBitfieldLValue() 1727 Builder.CreateStore(SrcVal, Ptr, Dst.isVolatileQualified()); in EmitStoreThroughBitfieldLValue() 1757 llvm::Value *SrcVal = Src.getScalarVal(); in EmitStoreThroughExtVectorComponentLValue() local 1771 Vec = Builder.CreateShuffleVector(SrcVal, in EmitStoreThroughExtVectorComponentLValue() [all …]
|
D | MicrosoftCXXABI.cpp | 3854 llvm::Value *SrcVal = in getAddrOfCXXCtorClosure() local 3864 if (SrcVal) in getAddrOfCXXCtorClosure() 3865 Args.add(RValue::get(SrcVal), SrcParam.getType()); in getAddrOfCXXCtorClosure()
|
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/ |
D | CBackend.cpp | 3300 Value *SrcVal = CI.getArgOperand(ValueCount-ResultVals.size()); in visitInlineAsm() local 3304 writeOperand(SrcVal); in visitInlineAsm() 3306 writeOperandDeref(SrcVal); in visitInlineAsm() 3534 int SrcVal = SVI.getMaskValue(i); in visitShuffleVectorInst() local 3535 if ((unsigned)SrcVal >= NumElts*2) { in visitShuffleVectorInst() 3538 Value *Op = SVI.getOperand((unsigned)SrcVal >= NumElts); in visitShuffleVectorInst() 3544 << "))[" << (SrcVal & (NumElts-1)) << "]"; in visitShuffleVectorInst() 3548 printConstant(cast<ConstantVector>(Op)->getOperand(SrcVal & in visitShuffleVectorInst()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | InstrEmitter.cpp | 806 SDValue SrcVal = Node->getOperand(2); in EmitSpecialNode() local 807 if (RegisterSDNode *R = dyn_cast<RegisterSDNode>(SrcVal)) in EmitSpecialNode() 810 SrcReg = getVR(SrcVal, VRBaseMap); in EmitSpecialNode()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | InstrEmitter.cpp | 899 SDValue SrcVal = Node->getOperand(2); in EmitSpecialNode() local 900 if (RegisterSDNode *R = dyn_cast<RegisterSDNode>(SrcVal)) in EmitSpecialNode() 903 SrcReg = getVR(SrcVal, VRBaseMap); in EmitSpecialNode()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | InstrEmitter.cpp | 979 SDValue SrcVal = Node->getOperand(2); in EmitSpecialNode() local 980 if (RegisterSDNode *R = dyn_cast<RegisterSDNode>(SrcVal)) in EmitSpecialNode() 983 SrcReg = getVR(SrcVal, VRBaseMap); in EmitSpecialNode()
|
/external/swiftshader/third_party/LLVM/lib/AsmParser/ |
D | LLParser.cpp | 2089 Constant *SrcVal; in ParseValID() local 2092 ParseGlobalTypeAndValue(SrcVal) || in ParseValID() 2097 if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy)) in ParseValID() 2099 getTypeString(SrcVal->getType()) + "' to '" + in ParseValID() 2102 SrcVal, DestTy); in ParseValID()
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 2933 Constant *SrcVal; in ParseValID() local 2936 ParseGlobalTypeAndValue(SrcVal) || in ParseValID() 2941 if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy)) in ParseValID() 2943 getTypeString(SrcVal->getType()) + "' to '" + in ParseValID() 2946 SrcVal, DestTy); in ParseValID()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/ |
D | LLParser.cpp | 3209 Constant *SrcVal; in ParseValID() local 3212 ParseGlobalTypeAndValue(SrcVal) || in ParseValID() 3217 if (!CastInst::castIsValid((Instruction::CastOps)Opc, SrcVal, DestTy)) in ParseValID() 3219 getTypeString(SrcVal->getType()) + "' to '" + in ParseValID() 3222 SrcVal, DestTy); in ParseValID()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 3547 Value *SrcVal = DestPN->getIncomingValue(Idx); in removeEmptyCleanup() local 3548 PHINode *SrcPN = dyn_cast<PHINode>(SrcVal); in removeEmptyCleanup() 3567 DestPN->addIncoming(SrcVal, pred); in removeEmptyCleanup()
|
/external/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 2666 const Value *SrcVal = II->getArgOperand(0); in fastLowerIntrinsicCall() local 2667 unsigned SrcReg = getRegForValue(SrcVal); in fastLowerIntrinsicCall()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 2846 const Value *SrcVal = II->getArgOperand(0); in fastLowerIntrinsicCall() local 2847 unsigned SrcReg = getRegForValue(SrcVal); in fastLowerIntrinsicCall()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 8065 SDValue SrcVal = Node->getOperand(2); in legalizeTargetIndependentNode() local 8069 if (SrcVal.getValueType() == MVT::i1 && in legalizeTargetIndependentNode() 8078 = DAG.getCopyToReg(Node->getOperand(0), SL, VReg, SrcVal, in legalizeTargetIndependentNode()
|