[all-commits] [llvm/llvm-project] 220fe0: [WebAssembly] Support `annotate` clang attributes ...
Brendan Dahl via All-commits
all-commits at lists.llvm.org
Tue Jul 11 15:18:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 220fe00a7c0f73164711f0d6cdefacef264b85dc
https://github.com/llvm/llvm-project/commit/220fe00a7c0f73164711f0d6cdefacef264b85dc
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date: 2023-07-11 (Tue, 11 Jul 2023)
Changed paths:
A lld/test/wasm/func-attr-tombstone.s
A lld/test/wasm/func-attr.s
A lld/test/wasm/merge-func-attr-section.s
M lld/wasm/InputChunks.cpp
M lld/wasm/InputFiles.cpp
M llvm/docs/ReleaseNotes.rst
M llvm/include/llvm/BinaryFormat/WasmRelocs.def
M llvm/include/llvm/MC/MCExpr.h
M llvm/lib/MC/MCExpr.cpp
M llvm/lib/MC/WasmObjectWriter.cpp
M llvm/lib/Object/WasmObjectFile.cpp
M llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.h
A llvm/test/CodeGen/WebAssembly/func-attr-annotate.ll
A llvm/test/MC/WebAssembly/func-attr.s
Log Message:
-----------
[WebAssembly] Support `annotate` clang attributes for marking functions.
Annotation attributes may be attached to a function to mark it with
custom data that will be contained in the final Wasm file. The
annotation causes a custom section named
"func_attr.annotate.<name>.<arg0>.<arg1>..." to be created that will
contain each function's index value that was marked with the annotation.
A new patchable relocation type for function indexes had to be created so
the custom section could be updated during linking.
Reviewed By: sbc100
Differential Revision: https://reviews.llvm.org/D150803
More information about the All-commits
mailing list