diff options
author | Erich Keane <ekeane@nvidia.com> | 2024-04-25 10:22:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 10:22:03 -0700 |
commit | 39adc8f423297c5741bb731bb8b1e545d558502c (patch) | |
tree | 4112878bc2fa3ed08d5644644e72e867b7505e86 /clang/lib/Serialization/ASTCommon.cpp | |
parent | 8dc7db7a24633f55ef28f2ab4b379386a34505f8 (diff) | |
download | llvm-39adc8f423297c5741bb731bb8b1e545d558502c.zip llvm-39adc8f423297c5741bb731bb8b1e545d558502c.tar.gz llvm-39adc8f423297c5741bb731bb8b1e545d558502c.tar.bz2 |
[NFC] Generalize ArraySections to work for OpenACC in the future (#89639)
OpenACC is going to need an array sections implementation that is a
simpler version/more restrictive version of the OpenMP version.
This patch moves `OMPArraySectionExpr` to `Expr.h` and renames it `ArraySectionExpr`,
then adds an enum to choose between the two.
This also fixes a couple of 'drive-by' issues that I discovered on the way,
but leaves the OpenACC Sema parts reasonably unimplemented (no semantic
analysis implementation), as that will be a followup patch.
Diffstat (limited to 'clang/lib/Serialization/ASTCommon.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTCommon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTCommon.cpp b/clang/lib/Serialization/ASTCommon.cpp index f8d54c0..e017f5b 100644 --- a/clang/lib/Serialization/ASTCommon.cpp +++ b/clang/lib/Serialization/ASTCommon.cpp @@ -261,8 +261,8 @@ serialization::TypeIdxFromBuiltin(const BuiltinType *BT) { case BuiltinType::IncompleteMatrixIdx: ID = PREDEF_TYPE_INCOMPLETE_MATRIX_IDX; break; - case BuiltinType::OMPArraySection: - ID = PREDEF_TYPE_OMP_ARRAY_SECTION; + case BuiltinType::ArraySection: + ID = PREDEF_TYPE_ARRAY_SECTION; break; case BuiltinType::OMPArrayShaping: ID = PREDEF_TYPE_OMP_ARRAY_SHAPING; |