[Openmp-commits] [PATCH] D113728: [libomptarget] [amdgpu] Foundation for OMPT target callback support
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Dec 7 13:14:27 PST 2021
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/plugins/amdgpu/src/rtl.cpp:43
+#include <ompt_device_callbacks.h>
+#define OMPT_IF_ENABLED(stmts) \
+ if (ompt_device_callbacks.is_enabled()) { \
----------------
This is an unguarded if statement, will interact badly with other if statements next to it in code. Macros like this are traditionally wrapped in `do { } while (0)` to avoid that syntax hazard
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113728/new/
https://reviews.llvm.org/D113728
More information about the Openmp-commits
mailing list