[PATCH] D81930: [AArch64] Add -mmark-bti-property flag.
Momchil Velikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 03:25:25 PDT 2020
chill requested changes to this revision.
chill added inline comments.
This revision now requires changes to proceed.
Herald added a subscriber: dang.
================
Comment at: llvm/lib/Target/AArch64/AArch64.td:352
+def FeatureEmitNoteBTIProperty : SubtargetFeature<"markbtiproperty", "MarkBTIProperty",
+ "true", "Emit .note.gnu.property for Branch Target Identification" >;
----------------
No, this is an abuse of subtarget features. Subtarget features represent characteristics of the chip, they shouldn't be used to pass arbitrary bits of information.
Possible alternatives - `TargetOptions` (cf. `BackendUtil.cpp:initTargetOptions()`) or
LLVM command-line arguments (cf. `BackendUtil.cpp:setCommandLineOpts()`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81930/new/
https://reviews.llvm.org/D81930
More information about the llvm-commits
mailing list