This patch introudces the OpenMPIRBuilderConfig class which contains various
flags that are needed to lower OMP constructs to LLVM-IR. The purpose is to
keep the flags in one place so they do not have to be passed in every time.
The flags can be set optionally since some uses cases don't rely on functions
that depend on these flags.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Optional<bool> is an odd data structure. I would use enums instead to describe the different states.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
83 | compilation |
Comment Actions
It is the standard data structure used in LLVM to encode optional data. Why would using an enum be better?
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
83 | Thanks for catching that. I will fix it. |
Comment Actions
LG. I think the Optional<bool> are fine, otherwise we have 3 enums for each of them which is even more boilerplate. @tschuett, OK with this?
compilation