Home
last modified time | relevance | path

Searched refs:ByVal (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dnoreturn-call-linux.ll8 ; struct ByVal {
11 ; struct ByVal getbyval();
12 ; void make_push_unprofitable(struct ByVal);
22 %struct.ByVal = type { [10 x i32] }
26 %agg.tmp = alloca %struct.ByVal, align 8
27 %agg.tmp1 = alloca %struct.ByVal, align 8
28 %agg.tmp2 = alloca %struct.ByVal, align 8
37 call void @getbyval(ptr nonnull sret(%struct.ByVal) %agg.tmp) #4
39 call void @getbyval(ptr nonnull sret(%struct.ByVal) %agg.tmp1) #4
41 call void @getbyval(ptr nonnull sret(%struct.ByVal) %agg.tmp2) #4
[all …]
H A Dnoreturn-call.ll50 %struct.ByVal = type { [10 x i32] }
54 %agg.tmp = alloca %struct.ByVal, align 4
55 %agg.tmp5 = alloca %struct.ByVal, align 4
56 %agg.tmp6 = alloca %struct.ByVal, align 4
75 call void @getbyval(ptr nonnull sret(%struct.ByVal) %agg.tmp)
76 call void @make_push_unprofitable(ptr nonnull byval(%struct.ByVal) align 4 %agg.tmp)
77 call void @getbyval(ptr nonnull sret(%struct.ByVal) %agg.tmp5)
78 call void @make_push_unprofitable(ptr nonnull byval(%struct.ByVal) align 4 %agg.tmp5)
79 call void @getbyval(ptr nonnull sret(%struct.ByVal) %agg.tmp6)
102 declare dso_local void @make_push_unprofitable(ptr byval(%struct.ByVal) align 4)
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dstmtexpr.cpp144 struct ByVal { int x[3]; }; struct
145 extern "C" int cleanup_exit_lvalue_byval(bool cond, ByVal arg) { in cleanup_exit_lvalue_byval()
146 ByVal &r = (A(1), ({ if (cond) return 0; (void)ByVal(); }), arg); in cleanup_exit_lvalue_byval()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DAttributesTest.cpp48 Attribute ByVal = Attribute::get(C, Attribute::ByVal, Type::getInt32Ty(C)); in TEST() local
49 EXPECT_FALSE(ByVal < Attribute::get(C, Attribute::ZExt)); in TEST()
50 EXPECT_TRUE(ByVal < Align4); in TEST()
51 EXPECT_FALSE(ByVal < ByVal); in TEST()
/llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp235 if (call_attribs.hasAttributeAtIndex(I, llvm::Attribute::ByVal)) { in fixupRSAllocationStructByValCalls()
237 call_inst->removeAttributeAtIndex(I, llvm::Attribute::ByVal); in fixupRSAllocationStructByValCalls()
248 arg.removeAttr(llvm::Attribute::ByVal); in fixupRSAllocationStructByValCalls()
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DCGFunctionInfo.h198 static ABIArgInfo getIndirect(CharUnits Alignment, bool ByVal = true,
203 AI.setIndirectByVal(ByVal);
222 static ABIArgInfo getIndirectInReg(CharUnits Alignment, bool ByVal = true,
224 auto AI = getIndirect(Alignment, ByVal, Realign);
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DIndirectionUtilsTest.cpp45 EXPECT_TRUE(Call->paramHasAttr(1U, Attribute::ByVal)) in TEST()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DABIInfo.h111 getNaturalAlignIndirect(QualType Ty, bool ByVal = true,
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp430 if (Callee->hasParamAttribute(I, Attribute::ByVal) != in isLegalToPromote()
431 CB.getAttributes().hasParamAttr(I, Attribute::ByVal)) { in isLegalToPromote()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp37 Attribute::ByVal, in isValidForDXIL()
/llvm-project-15.0.7/llvm/include/llvm/Target/
H A DTargetCallingConv.td39 /// CCIfByVal - If the current argument has ByVal parameter attribute, apply
154 /// slot to implement ByVal aggregate parameter passing. Size and alignment
/llvm-project-15.0.7/llvm/test/Analysis/StackSafetyAnalysis/
H A Dlocal.ll622 define void @ByVal(i16* byval(i16) %p) {
623 ; CHECK-LABEL: @ByVal dso_preemptable{{$}}
639 ; GLOBAL-NEXT: call void @ByVal(i16* byval(i16) %x)
640 ; GLOBAL-NEXT: call void @ByVal(i16* byval(i16) %y1)
644 call void @ByVal(i16* byval(i16) %x)
648 call void @ByVal(i16* byval(i16) %y1)
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLint.cpp235 if (PAL.hasParamAttr(ArgNo, Attribute::ByVal)) in visitCallBase()
268 if (PAL.hasParamAttr(ArgNo++, Attribute::ByVal)) in visitCallBase()
/llvm-project-15.0.7/llvm/lib/IR/
H A DAttributes.cpp187 return get(Context, ByVal, Ty); in getWithByValType()
727 return SetNode ? SetNode->getAttributeType(Attribute::ByVal) : nullptr; in getByValType()
1739 return addTypeAttr(Attribute::ByVal, Ty); in addByValAttr()
1838 .addAttribute(Attribute::ByVal) in typeIncompatible()
H A DFunction.cpp111 return hasAttribute(Attribute::ByVal); in hasByValAttr()
142 return Attrs.hasParamAttr(getArgNo(), Attribute::ByVal) || in hasPassPointeeByValueCopyAttr()
151 return Attrs.hasParamAttr(getArgNo(), Attribute::ByVal) || in hasPointeeInMemoryValueAttr()
H A DVerifier.cpp1774 AttrCount += Attrs.hasAttribute(Attribute::ByVal); in verifyParameterAttrs()
1839 if (Attrs.hasAttribute(Attribute::ByVal)) { in verifyParameterAttrs()
1876 if (Attrs.hasAttribute(Attribute::ByVal) && Attrs.getByValType()) { in verifyParameterAttrs()
2489 Check(F.arg_empty() || Attrs.hasParamAttr(0, Attribute::ByVal), in visitFunction()
2508 Check(!Attrs.hasParamAttr(i, Attribute::ByVal), in visitFunction()
3459 Attribute::StructRet, Attribute::ByVal, Attribute::InAlloca, in getParameterABIAttributes()
3472 (Attrs.hasParamAttr(I, Attribute::ByVal) || in getParameterABIAttributes()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86CallLowering.cpp256 if (Arg.hasAttribute(Attribute::ByVal) || in lowerFormalArguments()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/MCTargetDesc/
H A DSPIRVBaseInfo.h447 ByVal = 2, enumerator
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstrTypes.h1679 return paramHasAttr(ArgNo, Attribute::ByVal);
1690 return paramHasAttr(ArgNo, Attribute::ByVal) ||
1927 return Attrs.hasAttrSomewhere(Attribute::ByVal);
H A DAttributes.td75 def ByVal : TypeAttr<"byval", [ParamAttr]>;
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp649 if (Attrs.hasParamAttr(I, Attribute::ByVal) || in fastLowerArguments()
833 if (Attrs.hasParamAttr(I, Attribute::ByVal) || in selectCall()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64CallingConvention.td57 // Put ByVal arguments directly on the stack. Minimum size and alignment of a
186 // Put ByVal arguments directly on the stack. Minimum size and alignment of a
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp3042 Call.removeParamAttr(ix, Attribute::ByVal); in visitCallBase()
3292 if (CallerPAL.hasParamAttr(i, Attribute::ByVal) != in transformConstExprCastCall()
3293 Callee->getAttributes().hasParamAttr(i, Attribute::ByVal)) in transformConstExprCastCall()
3298 if (ParamTy != ActTy && CallerPAL.hasParamAttr(i, Attribute::ByVal)) { in transformConstExprCastCall()
3373 if (CallerPAL.hasParamAttr(i, Attribute::ByVal) && in transformConstExprCastCall()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp3686 bool ByVal = CB.paramHasAttr(i, Attribute::ByVal); in visitCallBase() local
3688 bool EagerCheck = MayCheckCall && !ByVal && NoUndef; in visitCallBase()
3702 if (ByVal) { in visitCallBase()
4241 bool IsByVal = CB.paramHasAttr(ArgNo, Attribute::ByVal); in visitCallBase()
4862 bool IsByVal = CB.paramHasAttr(ArgNo, Attribute::ByVal); in visitCallBase()
5091 assert(!CB.paramHasAttr(ArgNo, Attribute::ByVal)); in visitCallBase()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1673 case Attribute::ByVal: return 1 << 7; in getRawAttributeMask()
1847 return Attribute::ByVal; in getAttrFromCode()
2078 if (Kind == Attribute::ByVal) in parseAttributeGroupBlock()
3848 for (Attribute::AttrKind Kind : {Attribute::ByVal, Attribute::StructRet, in parseFunctionRecord()
3865 case Attribute::ByVal: in parseFunctionRecord()
3883 !Func->arg_empty() && !Func->hasParamAttribute(0, Attribute::ByVal)) { in parseFunctionRecord()
4364 for (Attribute::AttrKind Kind : {Attribute::ByVal, Attribute::StructRet, in propagateAttributeTypes()
4376 case Attribute::ByVal: in propagateAttributeTypes()

12