diff options
Diffstat (limited to 'offload/liboffload/include/OffloadImpl.hpp')
| -rw-r--r-- | offload/liboffload/include/OffloadImpl.hpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/offload/liboffload/include/OffloadImpl.hpp b/offload/liboffload/include/OffloadImpl.hpp index 9b0a21cb9ae1..f98164d5e178 100644 --- a/offload/liboffload/include/OffloadImpl.hpp +++ b/offload/liboffload/include/OffloadImpl.hpp @@ -22,12 +22,13 @@ #include "llvm/ADT/StringSet.h" #include "llvm/Support/Error.h" -struct OffloadConfig { - bool TracingEnabled = false; - bool ValidationEnabled = true; -}; - -OffloadConfig &offloadConfig(); +namespace llvm { +namespace offload { +bool isTracingEnabled(); +bool isValidationEnabled(); +bool isOffloadInitialized(); +} // namespace offload +} // namespace llvm // Use the StringSet container to efficiently deduplicate repeated error // strings (e.g. if the same error is hit constantly in a long running program) |
