Lines Matching refs:Module
26 #include "llvm/IR/Module.h"
43 Module *createEmptyModule(StringRef Name = StringRef()) {
44 Module * M = new Module(Name, Context);
50 Function *startFunction(Module *M, StringRef Name) {
68 Function *insertSimpleCallFunction(Module *M, Function *Callee) {
85 Function *insertMainFunction(Module *M, uint32_t returnCode) {
96 // in the current module and returns a pointer to it.
97 Function *insertAddFunction(Module *M, StringRef Name = "add") {
111 Function *insertExternalReferenceToFunction(Module *M, StringRef Name,
120 Function *insertExternalReferenceToFunction(Module *M, Function *Func) {
128 GlobalVariable *insertGlobalInt32(Module *M,
178 void createJIT(Module *M) {
180 // Due to the EngineBuilder constructor, it is required to have a Module
182 assert(M != 0 && "a non-null Module must be provided to create MCJIT");
198 // At this point, we cannot modify the module any more.
210 OwningPtr<Module> M;