| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | noreturn-call-linux.ll | 8 ; 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 D | noreturn-call.ll | 50 %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 D | stmtexpr.cpp | 144 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 D | AttributesTest.cpp | 48 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 D | RenderScriptx86ABIFixups.cpp | 235 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 D | CGFunctionInfo.h | 198 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 D | IndirectionUtilsTest.cpp | 45 EXPECT_TRUE(Call->paramHasAttr(1U, Attribute::ByVal)) in TEST()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | ABIInfo.h | 111 getNaturalAlignIndirect(QualType Ty, bool ByVal = true,
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 430 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 D | DXILPrepare.cpp | 37 Attribute::ByVal, in isValidForDXIL()
|
| /llvm-project-15.0.7/llvm/include/llvm/Target/ |
| H A D | TargetCallingConv.td | 39 /// 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 D | local.ll | 622 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 D | Lint.cpp | 235 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 D | Attributes.cpp | 187 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 D | Function.cpp | 111 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 D | Verifier.cpp | 1774 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 D | X86CallLowering.cpp | 256 if (Arg.hasAttribute(Attribute::ByVal) || in lowerFormalArguments()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/MCTargetDesc/ |
| H A D | SPIRVBaseInfo.h | 447 ByVal = 2, enumerator
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | InstrTypes.h | 1679 return paramHasAttr(ArgNo, Attribute::ByVal); 1690 return paramHasAttr(ArgNo, Attribute::ByVal) || 1927 return Attrs.hasAttrSomewhere(Attribute::ByVal);
|
| H A D | Attributes.td | 75 def ByVal : TypeAttr<"byval", [ParamAttr]>;
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFastISel.cpp | 649 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 D | AArch64CallingConvention.td | 57 // 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 D | InstCombineCalls.cpp | 3042 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 D | MemorySanitizer.cpp | 3686 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 D | BitcodeReader.cpp | 1673 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()
|