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
Time | Test | |
---|---|---|
2,610 ms | x64 debian > libarcher.races::lock-unrelated.c |
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 | ||
---|---|---|
9379 | With SmallVectorImpl for createOffloadMaptypes, this change is not necessary anymore | |
9401 | With SmallVectorImpl for createOffloadMapnames, this change is not necessary anymore | |
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
627 | Use SmallVectorImpl | |
631 | Use SmallVectorImpl | |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
2232 | 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