diff options
author | Michael Kruse <llvm-project@meinersbur.de> | 2025-07-03 10:42:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-03 10:42:18 +0200 |
commit | bd6cd92984e7a30cb91e4f069a0bacc5c582a234 (patch) | |
tree | 2543f0ca28f3aee48c51e4ed68485ce978ac1096 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 2dba752f0575306d8178e9bb4869d06528ab452c (diff) | |
download | llvm-bd6cd92984e7a30cb91e4f069a0bacc5c582a234.zip llvm-bd6cd92984e7a30cb91e4f069a0bacc5c582a234.tar.gz llvm-bd6cd92984e7a30cb91e4f069a0bacc5c582a234.tar.bz2 |
[MLIR][OpenMP][NFC] Use header guards for tblgen'd definitions (#146684)
Currently the generated `.h.inc` files are included coarse-grained
header files that just happen to work in the current source. But if at
another header, call it `A.h`, a definition from e.g.
"OpenMPOpsEnums.h.inc" is needed, it cannot be included there because it
`A.h` is also included in `B.h` that uses `OpenMPClauseOperands.h` which
already includes `OpenMPOpsEnums.h.inc`. So the content of
`OpenMPOpsEnums.h.inc` appears twice in the translation unit result in a
compile failure because the same enum cannot be defined twice.
This patch tries to use more fine-grained include header for generated
content protected by header guards, so `OpenMPOpsEnums.h` can be
included when ever needed. Some is done with `OpenMPOpsAttributes.h`.
Needed for #144785. Also fixes the recursive #include of
`OpenMPDialect.h` and `OpenMPInterfaces.h`.
Patch extracted out of #144785
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions