[PATCH] D84347: [MLIR,OpenMP] Lowering of parallel operation: proc_bind clause 2/n
Valentin Clement via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 12:38:44 PDT 2020
clementval added inline comments.
================
Comment at: llvm/utils/TableGen/DirectiveEmitter.cpp:212
+ OS << "\n";
+ std::string enumName{(llvm::Twine(R->getName().drop_front(Prefix.size())) +
+ llvm::Twine("Kind"))
----------------
clementval wrote:
> What happens if we omit the prefix `OMPC_` when we define the ClauseVal ... name will be truncated right? I guess you could define the ClauseVal without the prefix in the `.td` file and drop the string manipulation here. It will probably be safer.
The clang-tidy rule for TableGen code force a capital latter for variable. So `enumName` should be `EnumName`. Can you update this and other places if needed?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84347/new/
https://reviews.llvm.org/D84347
More information about the llvm-commits
mailing list