diff --git a/include/public/marco/Frontend/CodegenOptions.h b/include/public/marco/Frontend/CodegenOptions.h index a83debfa3..b94195372 100644 --- a/include/public/marco/Frontend/CodegenOptions.h +++ b/include/public/marco/Frontend/CodegenOptions.h @@ -6,36 +6,34 @@ #include #include -namespace marco::frontend -{ - /// Code generation operations. - /// The default values are for compiling without optimizations. - /// The class extends the language options for C / C++ to enable the - /// integration with clang's diagnostics infrastructure. - struct CodegenOptions : public clang::CodeGenOptions - { - llvm::OptimizationLevel optLevel = llvm::OptimizationLevel::O0; +namespace marco::frontend { +/// Code generation operations. +/// The default values are for compiling without optimizations. +/// The class extends the language options for C / C++ to enable the +/// integration with clang's diagnostics infrastructure. +struct CodegenOptions : public clang::CodeGenOptions { + llvm::OptimizationLevel optLevel = llvm::OptimizationLevel::O0; - bool debug = true; - bool assertions = true; - bool inlining = false; - bool outputArraysPromotion = false; - bool heapToStackPromotion = false; - bool readOnlyVariablesPropagation = false; - bool variablesToParametersPromotion = false; - bool cse = false; - bool equationsRuntimeScheduling = false; - bool omp = false; - bool singleValuedInductionElimination = false; - bool loopFusion = false; - bool loopCoalescing = false; - bool loopTiling = false; + bool debug = true; + bool assertions = true; + bool inlining = false; + bool outputArraysPromotion = false; + bool heapToStackPromotion = false; + bool readOnlyVariablesPropagation = false; + bool variablesToParametersPromotion = false; + bool cse = false; + bool equationsRuntimeScheduling = false; + bool omp = false; + bool singleValuedInductionElimination = false; + bool loopFusion = false; + bool loopCoalescing = false; + bool loopTiling = false; - unsigned int bitWidth = 64; + unsigned int bitWidth = 64; - std::string cpu = "generic"; - std::vector features; - }; -} + std::string cpu = "generic"; + std::vector features; +}; +} // namespace marco::frontend #endif // MARCO_FRONTEND_CODEGENOPTIONS_H