We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f3b4d commit bd1d766Copy full SHA for bd1d766
flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
@@ -276,6 +276,12 @@ class BoxedProcedurePass
276
auto loc = embox.getLoc();
277
mlir::Type i8Ty = builder.getI8Type();
278
mlir::Type i8Ptr = builder.getRefType(i8Ty);
279
+ // For AArch64, PPC32 and PPC64, the thunk is populated by a call to
280
+ // __trampoline_setup, which is defined in
281
+ // compiler-rt/lib/builtins/trampoline_setup.c and requires the
282
+ // thunk size greater than 32 bytes. For RISCV and x86_64, the
283
+ // thunk setup doesn't go through __trampoline_setup and fits in 32
284
+ // bytes.
285
fir::SequenceType::Extent thunkSize = 32;
286
if (triple.isPPC32())
287
thunkSize = 40;
0 commit comments