Issue 96368
Summary LLVM Language Reference for Prefix Data self-contradictory re: function entry point versus function descriptor
Labels llvm
Assignees
Reporter hubert-reinterpretcast
    https://llvm.org/docs/LangRef.html#prologuedata says:

> Prefix data is data associated with a function which the code generator will emit immediately before the function’s entrypoint.

However, it goes on to say:

> To access the data for a given function, a program may bitcast the function pointer to a pointer to the constant’s type and dereference index -1.

These statements are contradictory for targets that use function descriptors (an example being the 64-bit PowerPC ELFv1 ABI: https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#FUNC-DES).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to