Skip to content

LLVM Language Reference for Prefix Data self-contradictory re: function entry point versus function descriptor #96368

@hubert-reinterpretcast

Description

@hubert-reinterpretcast

https://llvm.org/docs/LangRef.html#prefix-data 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions