Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuttari committed Oct 5, 2024
1 parent a123cb3 commit 86701e8
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions include/public/marco/Frontend/CodegenOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,34 @@
#include <string>
#include <vector>

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<std::string> features;
};
}
std::string cpu = "generic";
std::vector<std::string> features;
};
} // namespace marco::frontend

#endif // MARCO_FRONTEND_CODEGENOPTIONS_H

0 comments on commit 86701e8

Please sign in to comment.