//===--- Level Zero Target RTL Implementation -----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Level Zero RTL Options support. // //===----------------------------------------------------------------------===// #include "omptarget.h" #include "L0Defs.h" #include "L0Options.h" #include "L0Trace.h" namespace llvm::omp::target::plugin { /// Read environment variables. void L0OptionsTy::processEnvironmentVars() { // Compilation options for IGC. UserCompilationOptions += std::string(" ") + StringEnvar("LIBOMPTARGET_LEVEL_ZERO_COMPILATION_OPTIONS", "").get(); // Memory pool syntax: // LIBOMPTARGET_LEVEL_ZERO_MEMORY_POOL=