[PATCH] D148370: [Clang][Flang][OpenMP] Add loadOffloadInfoMetadata and createOffloadEntriesAndInfoMetadata into OMPIRBuilder's finalize and initialize
Kiran Chandramohan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 15 06:00:45 PDT 2023
kiranchandramohan accepted this revision.
kiranchandramohan added a comment.
This revision is now accepted and ready to land.
LG. Please wait a day before submitting.
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:455-468
+ auto Buf = MemoryBuffer::getFile(HostFilePath);
+ if (auto Err = Buf.getError())
+ report_fatal_error(("error opening host file from host file path inside of "
+ "OpenMPIRBuilder: " +
+ Err.message())
+ .c_str());
+
----------------
Nit: Might be good to spell the types and use braces for multi-line code inside `if`.
================
Comment at: mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h:18
#include "mlir/Dialect/LLVMIR/LLVMInterfaces.h"
+#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
#include "mlir/IR/Operation.h"
----------------
Nit: Is this required here? Can it be in the CPP File?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148370/new/
https://reviews.llvm.org/D148370
More information about the cfe-commits
mailing list