Add function to create the offload_maptypes and the offload_mapnames globals. These two functions
are used in clang. They will be used in the Flang/MLIR lowering as well.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
That is, something that calls createOffloadMaptypes/createOffloadMapnames independently of any front-end. Can be as simply as calling it and checking that the returned variable has the expected type and name.
clang/lib/CodeGen/CGOpenMPRuntime.cpp | ||
---|---|---|
9378 | With SmallVectorImpl for createOffloadMaptypes, this change is not necessary anymore | |
9400 | With SmallVectorImpl for createOffloadMapnames, this change is not necessary anymore | |
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
619 | Use SmallVectorImpl | |
623 | Use SmallVectorImpl | |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
2098 | A description at the declaration is sufficient |
The policy so far was to have LLVM functionality tested in LLVM itself. See https://reviews.llvm.org/D91470#2395409 and D91643.
With SmallVectorImpl for createOffloadMaptypes, this change is not necessary anymore