Lines Matching defs:M
38 bool runOnModule(Module &M);
41 Value *remapConstant(Module *M, Function *F, Constant *C,
43 Value *remapConstantVectorOrConstantAggregate(Module *M, Function *F,
46 Value *remapConstantExpr(Module *M, Function *F, ConstantExpr *C,
56 bool GenericToNVVM::runOnModule(Module &M) {
62 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) {
67 M, GV.getValueType(), GV.isConstant(), GV.getLinkage(),
85 for (Function &F : M) {
96 i, remapConstant(&M, &F, cast<Constant>(Operand), Builder));
137 Value *GenericToNVVM::remapConstant(Module *M, Function *F, Constant *C,
164 NewValue = remapConstantVectorOrConstantAggregate(M, F, C, Builder);
169 NewValue = remapConstantExpr(M, F, cast<ConstantExpr>(C), Builder);
177 Module *M, Function *F, Constant *C, IRBuilder<> &Builder) {
186 Value *NewOperand = remapConstant(M, F, cast<Constant>(Operand), Builder);
202 Value *Idx = ConstantInt::get(Type::getInt32Ty(M->getContext()), i);
215 Value *GenericToNVVM::remapConstantExpr(Module *M, Function *F, ConstantExpr *C,
225 Value *NewOperand = remapConstant(M, F, cast<Constant>(Operand), Builder);
281 bool runOnModule(Module &M) override;
296 bool GenericToNVVMLegacyPass::runOnModule(Module &M) {
297 return GenericToNVVM().runOnModule(M);
300 PreservedAnalyses GenericToNVVMPass::run(Module &M, ModuleAnalysisManager &AM) {
301 return GenericToNVVM().runOnModule(M) ? PreservedAnalyses::none()