3 #include "details/utils/stringrefs.h" 4 #include "details/ir/fwd.h" 44 AnyString
symbolname(uint32_t atomid, uint32_t index)
const;
47 yuni::Ref<Atom>
findAtom(uint32_t atomid)
const;
49 yuni::Ref<Atom>
findAtom(uint32_t atomid);
62 yuni::Ref<Atom>
object[nyt_count];
73 std::vector<yuni::Ref<Atom>> m_byIndex;
74 uint32_t m_atomGrpID = 0;
82 #include "atom-map.hxx" Atom & createFuncdef(Atom &parent, const AnyString &name)
Create a new atom related to a function.
Definition: atom-map.hxx:16
Atom & createUnit(Atom &parent, const AnyString &name)
Create a new atom related to an unit (source file)
Definition: atom-map.hxx:34
const ir::Sequence * ircodeIfExists(uint32_t atomid, uint32_t index) const
Find the IR sequence for a given {atomid/instanceid} (null if not found)
Definition: atom-map.hxx:45
yuni::Ref< Atom > findAtom(uint32_t atomid) const
Retrive an Atom object from its unique id (const)
Definition: atom-map.hxx:51
Definition: classdef-table.h:19
Atom & createVardef(Atom &parent, const AnyString &name)
Create a new atom related to a variable.
Definition: atom-map.cpp:77
Atom & createNamespace(Atom &parent, const AnyString &name)
Create a new atom related to a part of a namespace.
Definition: atom-map.hxx:8
StringRefs & stringrefs
String catalog.
Definition: atom-map.h:59
Atoms.
Definition: atom-map.h:17
Type
Definition: atom.h:41
Definition of a single class or function.
Definition: atom.h:37
Atom & createClassdef(Atom &parent, const AnyString &name)
Create a new atom related to a class.
Definition: atom-map.hxx:22
bool fetchAndIndexCoreObjects()
Try to retrieve the corresponding classes for core objects (bool, i32...)
Definition: atom-map.cpp:94
const ir::Sequence & ircode(uint32_t atomid, uint32_t index) const
Find the IR code for a given {atomid/instanceid}.
Definition: atom-map.hxx:39
Atom root
The root atom (global namespace)
Definition: atom-map.h:57
Definition: sequence.h:22
AnyString symbolname(uint32_t atomid, uint32_t index) const
Retrieve the human readable name of an atom (empty if not found)
Definition: atom-map.cpp:87
Atom & createTypealias(Atom &parent, const AnyString &name)
Create a new atom related to a type alias.
Definition: atom-map.hxx:28
Container for minimizing memory use of duplicate strings.
Definition: stringrefs.h:12