[PATCH] D75470: [SVE] Auto-generate builtins and header for svld1.
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 16 07:00:16 PDT 2020
thakis added inline comments.
================
Comment at: clang/utils/TableGen/SveEmitter.cpp:32
#include "llvm/TableGen/Error.h"
+#include "clang/Basic/AArch64SVETypeFlags.h"
#include <string>
----------------
Including stuff from `clang/Basic` in clang/utils/TableGen is conceptually a layering violation: clang-tblgen is used to generate headers included in clang/Basic. In this case it happens to work, but it's because you're lucky, and it could break for subtle reasons if the TypeFlags header starts including some other header in Basic that happens to include something generated.
Please restructure this so that the TableGen code doesn't need an include from Basic.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75470/new/
https://reviews.llvm.org/D75470
More information about the cfe-commits
mailing list