Lines Matching refs:Module
1 //===-- GenericToNVVM.cpp - Convert generic module to NVVM module - C++ -*-===//
24 #include "llvm/IR/Module.h"
44 virtual bool runOnModule(Module &M);
50 Value *getOrInsertCVTA(Module *M, Function *F, GlobalVariable *GV,
52 Value *remapConstant(Module *M, Function *F, Constant *C,
54 Value *remapConstantVectorOrConstantAggregate(Module *M, Function *F,
57 Value *remapConstantExpr(Module *M, Function *F, ConstantExpr *C,
59 void remapNamedMDNode(Module *M, NamedMDNode *N);
60 MDNode *remapMDNode(Module *M, MDNode *N);
78 bool GenericToNVVM::runOnModule(Module &M) {
84 for (Module::global_iterator I = M.global_begin(), E = M.global_end();
108 for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
131 for (Module::named_metadata_iterator I = M.named_metadata_begin(),
164 Value *GenericToNVVM::getOrInsertCVTA(Module *M, Function *F,
207 Value *GenericToNVVM::remapConstant(Module *M, Function *F, Constant *C,
222 // module eventually. And the clone of C with the global address space
248 Module *M, Function *F, Constant *C, IRBuilder<> &Builder) {
286 Value *GenericToNVVM::remapConstantExpr(Module *M, Function *F, ConstantExpr *C,
365 void GenericToNVVM::remapNamedMDNode(Module *M, NamedMDNode *N) {
394 MDNode *GenericToNVVM::remapMDNode(Module *M, MDNode *N) {