This patch moves the implementation of the loadOffloadInfoMetadata to the OMPIRbuilder.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
2167 | Why is this in llvm namespace? This should be qualified further, e.g. part of the OMPIRBuilder. Also, no llvm:: | |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
4717 | Why do we call it if isDevice is false? Module should be available to the IRBuilder. | |
4765 | No llvm::. Put "omp_offload.info" into a global constant, either in OMPIRBuilder or OMPConstants. |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
---|---|---|
4717 | loadOffloadInfoMetadata is called from clang with a different Module generated using parseBitcodeFile. I've checked that the module available from OMPIRBuilder and the one passed by clang are different and cause errors. |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
---|---|---|
4717 | Added doxygen comment. isDevice is checked at call site through CGM.getLangOpts().OpenMPIsDevice. |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
---|---|---|
4712 | isDevice must be true (add assertion at the call site) remove the parameter, and the assertions in this function. Document that this function is only intended to be used with device code generation. |
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1685 | Drive by, add doxygen documentation to all methods + members please. |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
---|---|---|
4712 | I've removed isDevice as a parameter. At the call site, isDevice is checked inside an if condition and it returns on false, thus I haven't added the assertion back at the call site. |
clang-format not found in user’s local PATH; not linting file.