38 void WriteClosure(llvm::raw_ostream &,
const Symbol &,
39 UnorderedSymbolSet &nonIntrinsicModulesWritten);
40 ModFileWriter &set_hermeticModuleFileOutput(
bool yes =
true) {
41 hermeticModuleFileOutput_ = yes;
48 std::string needsBuf_;
50 std::string useExtraAttrsBuf_;
51 std::string declsBuf_;
52 std::string containsBuf_;
54 UnorderedSymbolSet emittedDECStructures_, emittedDECFields_;
55 UnorderedSymbolSet usedNonIntrinsicModules_;
59 UnorderedSymbolSet reexportedReductionModules_;
61 llvm::raw_string_ostream needs_{needsBuf_};
62 llvm::raw_string_ostream uses_{usesBuf_};
63 llvm::raw_string_ostream useExtraAttrs_{
65 llvm::raw_string_ostream decls_{declsBuf_};
66 llvm::raw_string_ostream contains_{containsBuf_};
67 bool isSubmodule_{
false};
68 bool hermeticModuleFileOutput_{
false};
70 void WriteAll(
const Scope &);
71 void WriteOne(
const Scope &);
72 void Write(
const Symbol &);
73 std::string GetAsString(
const Symbol &);
74 void PrepareRenamings(
const Scope &);
75 void PutSymbols(
const Scope &, UnorderedSymbolSet *hermetic);
77 bool PutComponents(
const Symbol &);
78 void PutSymbol(llvm::raw_ostream &,
const Symbol &);
79 void PutEntity(llvm::raw_ostream &,
const Symbol &);
81 llvm::raw_ostream &,
const Symbol &, std::function<
void()>, Attrs);
82 void PutObjectEntity(llvm::raw_ostream &,
const Symbol &);
83 void PutProcEntity(llvm::raw_ostream &,
const Symbol &);
84 void PutDerivedType(
const Symbol &,
const Scope * =
nullptr);
85 void PutDECStructure(
const Symbol &,
const Scope * =
nullptr);
86 void PutTypeParam(llvm::raw_ostream &,
const Symbol &);
87 void PutUserReduction(llvm::raw_ostream &,
const Symbol &);
88 void PutSubprogram(
const Symbol &);
89 void PutGeneric(
const Symbol &);
90 void PutUse(
const Symbol &);
91 void PutUseExtraAttr(Attr,
const Symbol &,
const Symbol &);
92 llvm::raw_ostream &PutAttrs(llvm::raw_ostream &, Attrs,
93 const std::string * =
nullptr,
bool =
false, std::string before =
","s,
94 std::string after =
""s)
const;
95 void PutDirective(llvm::raw_ostream &,
const Symbol &);
Definition semantics.h:67