LLVM 20.0.0git
|
In SandboxIR the Module is mainly used to access the list of global objects. More...
#include "llvm/SandboxIR/Module.h"
Public Member Functions | |
Context & | getContext () const |
Function * | getFunction (StringRef Name) const |
const DataLayout & | getDataLayout () const |
const std::string & | getSourceFileName () const |
GlobalVariable * | getGlobalVariable (StringRef Name, bool AllowInternal) const |
Look up the specified global variable in the module symbol table. | |
GlobalVariable * | getGlobalVariable (StringRef Name) const |
GlobalVariable * | getNamedGlobal (StringRef Name) const |
Return the global variable in the module with the specified name, of arbitrary type. | |
GlobalAlias * | getNamedAlias (StringRef Name) const |
Return the global alias in the module with the specified name, of arbitrary type. | |
GlobalIFunc * | getNamedIFunc (StringRef Name) const |
Return the global ifunc in the module with the specified name, of arbitrary type. | |
void | dumpOS (raw_ostream &OS) const |
LLVM_DUMP_METHOD void | dump () const |
Friends | |
class | Context |
In SandboxIR the Module is mainly used to access the list of global objects.
LLVM_DUMP_METHOD void llvm::sandboxir::Module::dump | ( | ) | const |
void Module::dumpOS | ( | raw_ostream & | OS | ) | const |
Definition at line 37 of file Module.cpp.
References OS.
|
inline |
|
inline |
Definition at line 43 of file Module.h.
References llvm::Module::getDataLayout().
|
inline |
Definition at line 54 of file Module.h.
References getGlobalVariable(), and Name.
GlobalVariable * llvm::sandboxir::Module::getGlobalVariable | ( | StringRef | Name, |
bool | AllowInternal | ||
) | const |
Look up the specified global variable in the module symbol table.
If it does not exist, return null. If AllowInternal is set to true, this function will return types that have InternalLinkage. By default, these types are not returned.
Referenced by getGlobalVariable(), and getNamedGlobal().
GlobalAlias * llvm::sandboxir::Module::getNamedAlias | ( | StringRef | Name | ) | const |
Return the global alias in the module with the specified name, of arbitrary type.
This method returns null if a global with the specified name is not found.
|
inline |
Return the global variable in the module with the specified name, of arbitrary type.
This method returns null if a global with the specified name is not found.
Definition at line 60 of file Module.h.
References getGlobalVariable(), and Name.
GlobalIFunc * llvm::sandboxir::Module::getNamedIFunc | ( | StringRef | Name | ) | const |
Return the global ifunc in the module with the specified name, of arbitrary type.
This method returns null if a global with the specified name is not found.
|
inline |
Definition at line 45 of file Module.h.
References llvm::Module::getSourceFileName().