Home
last modified time | relevance | path

Searched refs:OrigArg (Results 1 – 25 of 28) sorted by relevance

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86CallLowering.cpp53 bool X86CallLowering::splitToValueTypes(const ArgInfo &OrigArg, in splitToValueTypes() argument
59 LLVMContext &Context = OrigArg.Ty->getContext(); in splitToValueTypes()
63 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs, &Offsets, 0); in splitToValueTypes()
64 assert(OrigArg.Regs.size() == 1 && "Can't handle multple regs yet"); in splitToValueTypes()
66 if (OrigArg.Ty->isVoidTy()) in splitToValueTypes()
74 SplitArgs.emplace_back(OrigArg.Regs[0], VT.getTypeForEVT(Context), in splitToValueTypes()
75 OrigArg.Flags, OrigArg.IsFixed); in splitToValueTypes()
87 PartTy, OrigArg.Flags}; in splitToValueTypes()
354 ArgInfo OrigArg(VRegs[Idx], Arg.getType()); in lowerFormalArguments() local
355 setArgFlags(OrigArg, Idx + AttributeList::FirstArgIndex, DL, F); in lowerFormalArguments()
[all …]
/external/llvm-project/llvm/lib/Target/X86/
DX86CallLowering.cpp53 bool X86CallLowering::splitToValueTypes(const ArgInfo &OrigArg, in splitToValueTypes() argument
59 LLVMContext &Context = OrigArg.Ty->getContext(); in splitToValueTypes()
63 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs, &Offsets, 0); in splitToValueTypes()
64 assert(OrigArg.Regs.size() == 1 && "Can't handle multple regs yet"); in splitToValueTypes()
66 if (OrigArg.Ty->isVoidTy()) in splitToValueTypes()
74 SplitArgs.emplace_back(OrigArg.Regs[0], VT.getTypeForEVT(Context), in splitToValueTypes()
75 OrigArg.Flags, OrigArg.IsFixed); in splitToValueTypes()
87 PartTy, OrigArg.Flags}; in splitToValueTypes()
351 ArgInfo OrigArg(VRegs[Idx], Arg.getType()); in lowerFormalArguments() local
352 setArgFlags(OrigArg, Idx + AttributeList::FirstArgIndex, DL, F); in lowerFormalArguments()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64CallLowering.cpp220 const ArgInfo &OrigArg, SmallVectorImpl<ArgInfo> &SplitArgs, in splitToValueTypes() argument
223 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
225 if (OrigArg.Ty->isVoidTy()) in splitToValueTypes()
230 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs, &Offsets, 0); in splitToValueTypes()
235 SplitArgs.emplace_back(OrigArg.Regs[0], SplitVTs[0].getTypeForEVT(Ctx), in splitToValueTypes()
236 OrigArg.Flags[0], OrigArg.IsFixed); in splitToValueTypes()
241 assert(OrigArg.Regs.size() == SplitVTs.size() && "Regs / types mismatch"); in splitToValueTypes()
244 OrigArg.Ty, CallConv, false); in splitToValueTypes()
247 SplitArgs.emplace_back(OrigArg.Regs[i], SplitTy, OrigArg.Flags[0], in splitToValueTypes()
248 OrigArg.IsFixed); in splitToValueTypes()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMCallLowering.cpp189 void ARMCallLowering::splitToValueTypes(const ArgInfo &OrigArg, in splitToValueTypes() argument
193 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
198 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs, nullptr, nullptr, 0); in splitToValueTypes()
199 assert(OrigArg.Regs.size() == SplitVTs.size() && "Regs / types mismatch"); in splitToValueTypes()
204 auto Flags = OrigArg.Flags[0]; in splitToValueTypes()
205 Flags.setOrigAlign(DL.getABITypeAlign(OrigArg.Ty)); in splitToValueTypes()
206 SplitArgs.emplace_back(OrigArg.Regs[0], SplitVTs[0].getTypeForEVT(Ctx), in splitToValueTypes()
207 Flags, OrigArg.IsFixed); in splitToValueTypes()
215 auto Flags = OrigArg.Flags[0]; in splitToValueTypes()
229 Register PartReg = OrigArg.Regs[i]; in splitToValueTypes()
[all …]
DARMCallLowering.h51 void splitToValueTypes(const ArgInfo &OrigArg,
DARMISelLowering.h846 SDValue &Chain, const Value *OrigArg,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMCallLowering.cpp190 void ARMCallLowering::splitToValueTypes(const ArgInfo &OrigArg, in splitToValueTypes() argument
194 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
199 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs, nullptr, nullptr, 0); in splitToValueTypes()
200 assert(OrigArg.Regs.size() == SplitVTs.size() && "Regs / types mismatch"); in splitToValueTypes()
205 auto Flags = OrigArg.Flags[0]; in splitToValueTypes()
206 Flags.setOrigAlign(Align(DL.getABITypeAlignment(OrigArg.Ty))); in splitToValueTypes()
207 SplitArgs.emplace_back(OrigArg.Regs[0], SplitVTs[0].getTypeForEVT(Ctx), in splitToValueTypes()
208 Flags, OrigArg.IsFixed); in splitToValueTypes()
216 auto Flags = OrigArg.Flags[0]; in splitToValueTypes()
230 Register PartReg = OrigArg.Regs[i]; in splitToValueTypes()
[all …]
DARMCallLowering.h51 void splitToValueTypes(const ArgInfo &OrigArg,
DARMISelLowering.h773 SDValue &Chain, const Value *OrigArg,
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64CallLowering.cpp238 const ArgInfo &OrigArg, SmallVectorImpl<ArgInfo> &SplitArgs, in splitToValueTypes() argument
241 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
245 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs, &Offsets, 0); in splitToValueTypes()
253 SplitArgs.emplace_back(OrigArg.Regs[0], SplitVTs[0].getTypeForEVT(Ctx), in splitToValueTypes()
254 OrigArg.Flags[0], OrigArg.IsFixed); in splitToValueTypes()
259 assert(OrigArg.Regs.size() == SplitVTs.size() && "Regs / types mismatch"); in splitToValueTypes()
262 OrigArg.Ty, CallConv, false); in splitToValueTypes()
265 SplitArgs.emplace_back(OrigArg.Regs[i], SplitTy, OrigArg.Flags[0], in splitToValueTypes()
266 OrigArg.IsFixed); in splitToValueTypes()
455 ArgInfo OrigArg{VRegs[i], Arg.getType()}; in lowerFormalArguments() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUCallLowering.cpp154 const ArgInfo &OrigArg, SmallVectorImpl<ArgInfo> &SplitArgs, in splitToValueTypes() argument
158 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
160 if (OrigArg.Ty->isVoidTy()) in splitToValueTypes()
164 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs); in splitToValueTypes()
166 assert(OrigArg.Regs.size() == SplitVTs.size()); in splitToValueTypes()
178 SplitArgs.emplace_back(OrigArg.Regs[SplitIdx], Ty, in splitToValueTypes()
179 OrigArg.Flags, OrigArg.IsFixed); in splitToValueTypes()
198 SplitArgs.emplace_back(ArrayRef<Register>(PartReg), PartTy, OrigArg.Flags); in splitToValueTypes()
646 ArgInfo OrigArg(VRegs[Idx], Arg.getType()); in lowerFormalArguments() local
647 setArgFlags(OrigArg, Idx + AttributeList::FirstArgIndex, DL, F); in lowerFormalArguments()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUCallLowering.cpp287 const ArgInfo &OrigArg, in splitToValueTypes() argument
293 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
295 if (OrigArg.Ty->isVoidTy()) in splitToValueTypes()
299 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitVTs); in splitToValueTypes()
301 assert(OrigArg.Regs.size() == SplitVTs.size()); in splitToValueTypes()
305 Register Reg = OrigArg.Regs[SplitIdx]; in splitToValueTypes()
311 if (OrigArg.Flags[0].isSExt()) { in splitToValueTypes()
312 assert(OrigArg.Regs.size() == 1 && "expect only simple return values"); in splitToValueTypes()
314 } else if (OrigArg.Flags[0].isZExt()) { in splitToValueTypes()
315 assert(OrigArg.Regs.size() == 1 && "expect only simple return values"); in splitToValueTypes()
[all …]
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp990 const Expr *OrigArg = Arg->IgnoreImpCasts(); in rewriteToNumericBoxedExpression() local
992 QualType OrigTy = OrigArg->getType(); in rewriteToNumericBoxedExpression()
1014 if (OrigTy->getAs<EnumType>() || isEnumConstant(OrigArg)) in rewriteToNumericBoxedExpression()
1096 SourceRange ArgRange = OrigArg->getSourceRange(); in rewriteToNumericBoxedExpression()
1099 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in rewriteToNumericBoxedExpression()
1120 const Expr *OrigArg = Arg->IgnoreImpCasts(); in doRewriteToUTF8StringBoxedExpressionHelper() local
1121 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper()
1126 StrE = dyn_cast<StringLiteral>(OrigArg->IgnoreParens())) { in doRewriteToUTF8StringBoxedExpressionHelper()
1135 SourceRange ArgRange = OrigArg->getSourceRange(); in doRewriteToUTF8StringBoxedExpressionHelper()
1138 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in doRewriteToUTF8StringBoxedExpressionHelper()
/external/llvm-project/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp992 const Expr *OrigArg = Arg->IgnoreImpCasts(); in rewriteToNumericBoxedExpression() local
994 QualType OrigTy = OrigArg->getType(); in rewriteToNumericBoxedExpression()
1016 if (OrigTy->getAs<EnumType>() || isEnumConstant(OrigArg)) in rewriteToNumericBoxedExpression()
1108 SourceRange ArgRange = OrigArg->getSourceRange(); in rewriteToNumericBoxedExpression()
1111 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in rewriteToNumericBoxedExpression()
1132 const Expr *OrigArg = Arg->IgnoreImpCasts(); in doRewriteToUTF8StringBoxedExpressionHelper() local
1133 QualType OrigTy = OrigArg->getType(); in doRewriteToUTF8StringBoxedExpressionHelper()
1138 StrE = dyn_cast<StringLiteral>(OrigArg->IgnoreParens())) { in doRewriteToUTF8StringBoxedExpressionHelper()
1147 SourceRange ArgRange = OrigArg->getSourceRange(); in doRewriteToUTF8StringBoxedExpressionHelper()
1150 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in doRewriteToUTF8StringBoxedExpressionHelper()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp98 ArgInfo OrigArg{ArgRegs[i], Arg->getType(), getAttributesForArgIdx(CB, i), in lowerCall() local
100 setArgFlags(OrigArg, i + AttributeList::FirstArgIndex, DL, CB); in lowerCall()
104 if (OrigArg.Flags[0].isSRet() && isa<Instruction>(&Arg)) in lowerCall()
107 Info.OrigArgs.push_back(OrigArg); in lowerCall()
/external/llvm-project/llvm/lib/Target/Mips/
DMipsCallLowering.cpp667 const DataLayout &DL, const ArgInfo &OrigArg, unsigned OriginalIndex, in splitToValueTypes() argument
674 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
676 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitEVTs); in splitToValueTypes()
679 ArgInfo Info = ArgInfo{OrigArg.Regs[i], SplitEVTs[i].getTypeForEVT(Ctx)}; in splitToValueTypes()
680 Info.Flags = OrigArg.Flags; in splitToValueTypes()
DMipsCallLowering.h86 void splitToValueTypes(const DataLayout &DL, const ArgInfo &OrigArg,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsCallLowering.h85 void splitToValueTypes(const DataLayout &DL, const ArgInfo &OrigArg,
DMipsCallLowering.cpp704 const DataLayout &DL, const ArgInfo &OrigArg, unsigned OriginalIndex, in splitToValueTypes() argument
711 LLVMContext &Ctx = OrigArg.Ty->getContext(); in splitToValueTypes()
713 ComputeValueVTs(TLI, DL, OrigArg.Ty, SplitEVTs); in splitToValueTypes()
716 ArgInfo Info = ArgInfo{OrigArg.Regs[i], SplitEVTs[i].getTypeForEVT(Ctx)}; in splitToValueTypes()
717 Info.Flags = OrigArg.Flags; in splitToValueTypes()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp46 ArgInfo OrigArg{ArgRegs[i], Arg->getType(), ISD::ArgFlagsTy{}, in lowerCall() local
48 setArgFlags(OrigArg, i + AttributeList::FirstArgIndex, DL, CS); in lowerCall()
49 Info.OrigArgs.push_back(OrigArg); in lowerCall()
/external/llvm-project/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp664 Value *OrigArg = Arg; in run() local
696 for (User *U : OrigArg->users()) in run()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp694 Value *OrigArg = Arg; in runOnFunction() local
726 for (User *U : OrigArg->users()) in runOnFunction()
/external/llvm/lib/Target/ARM/
DARMISelLowering.h613 SDValue &Chain, const Value *OrigArg,
/external/llvm-project/clang/lib/Sema/
DSemaChecking.cpp5944 Expr *OrigArg = TheCall->getArg(NumArgs-1); in SemaBuiltinFPClassification() local
5946 if (OrigArg->isTypeDependent()) in SemaBuiltinFPClassification()
5953 OrigArg = UsualUnaryConversions(OrigArg).get(); in SemaBuiltinFPClassification()
5955 OrigArg = DefaultFunctionArrayLvalueConversion(OrigArg).get(); in SemaBuiltinFPClassification()
5956 TheCall->setArg(NumArgs - 1, OrigArg); in SemaBuiltinFPClassification()
5959 if (!OrigArg->getType()->isRealFloatingType()) in SemaBuiltinFPClassification()
5960 return Diag(OrigArg->getBeginLoc(), in SemaBuiltinFPClassification()
5962 << OrigArg->getType() << OrigArg->getSourceRange(); in SemaBuiltinFPClassification()
/external/clang/lib/Sema/
DSemaChecking.cpp3352 Expr *OrigArg = TheCall->getArg(NumArgs-1); in SemaBuiltinFPClassification() local
3354 if (OrigArg->isTypeDependent()) in SemaBuiltinFPClassification()
3358 if (!OrigArg->getType()->isRealFloatingType()) in SemaBuiltinFPClassification()
3359 return Diag(OrigArg->getLocStart(), in SemaBuiltinFPClassification()
3361 << OrigArg->getType() << OrigArg->getSourceRange(); in SemaBuiltinFPClassification()
3364 if (ImplicitCastExpr *Cast = dyn_cast<ImplicitCastExpr>(OrigArg)) { in SemaBuiltinFPClassification()

12