[PATCH] D85849: [X86] Flatten feature dependency tree at compile-time

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 17:55:27 PDT 2020


void added inline comments.


================
Comment at: llvm/lib/Support/X86TargetParser.cpp:583
+    FeatureDependencies[X86::CPU_FEATURE_MAX] = {
+#define X86_FEATURE(ENUM, STR) FlattenFeatureDependencies(__COUNTER__),
+#include "llvm/Support/X86TargetParser.def"
----------------
craig.topper wrote:
> I've never seen __COUNTER__ before. Is it supported by all the compilers we support. I couldn't find other uses in tree.
It is. I believe it's a GNU C feature. But it's heavily used in Linux.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85849/new/

https://reviews.llvm.org/D85849



More information about the llvm-commits mailing list