MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / CompileProgram

Class CompileProgram

include/Surelog/DesignCompile/CompileProgram.h:61–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61class CompileProgram final : public CompileToolbox {
62 public:
63 CompileProgram(CompileDesign* compiler, Program* program, Design* design,
64 SymbolTable* symbols, ErrorContainer* errors)
65 : m_compileDesign(compiler),
66 m_program(program),
67 m_design(design),
68 m_symbols(symbols),
69 m_errors(errors) {
70 m_helper.seterrorReporting(errors, symbols);
71 }
72
73 bool compile();
74
75 ~CompileProgram() final = default;
76
77 private:
78 enum CollectType { FUNCTION, DEFINITION, OTHER };
79 bool collectObjects_(CollectType collectType);
80
81 CompileDesign* const m_compileDesign;
82 Program* const m_program;
83 Design* const m_design;
84 SymbolTable* const m_symbols;
85 ErrorContainer* const m_errors;
86 CompileHelper m_helper;
87 uint32_t m_nbPorts = 0;
88 bool m_hasNonNullPort = false;
89 UHDM::VectorOfattribute* m_attributes = nullptr;
90};
91
92} // namespace SURELOG
93

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected