From c00c2baf481b9dffe9288f5dad0f5ec9687e1347 Mon Sep 17 00:00:00 2001
From: Duncan Sands
- Trampolines are currently only supported on the X86 architecture. -
@@ -5194,9 +5191,10 @@ declare void @llvm.init.trampoline(i8* <tramp>, i8* <func>, i8* < The llvm.init.trampoline intrinsic takes three arguments, all pointers. The tramp argument must point to a sufficiently large and sufficiently aligned block of memory; this memory is written to by the - intrinsic. Currently LLVM provides no help in determining just how big and - aligned the memory needs to be. The func argument must hold a - function bitcast to an i8*. + intrinsic. Note that the size and the alignment are target-specific - LLVM + currently provides no portable way of determining them, so a front-end that + generates this intrinsic needs to have some target-specific knowledge. + The func argument must hold a function bitcast to an i8*.