Lines Matching refs:M
110 bool runOnModule(llvm::Module &M) override { in runOnModule() argument
118 const llvm::DataLayout &DL = M.getDataLayout(); in runOnModule()
126 llvm::Type *VoidPtrTy = llvm::Type::getInt8PtrTy(M.getContext()); in runOnModule()
129 llvm::Type *Int32Ty = llvm::Type::getInt32Ty(M.getContext()); in runOnModule()
132 llvm::Type *SizeTy = llvm::Type::getIntNTy(M.getContext(), in runOnModule()
135 for (auto &GV : M.globals()) { in runOnModule()
170 llvm::ConstantDataArray::getString(M.getContext(), GVN); in runOnModule()
173 llvm::Value *V = M.getOrInsertGlobal(VarName.str(), C->getType()); in runOnModule()
206 llvm::Value *V = M.getOrInsertGlobal(kRsGlobalEntries, Int32Ty); in runOnModule()
215 V = M.getOrInsertGlobal(kRsGlobalNames, VoidPtrArrayTy); in runOnModule()
224 V = M.getOrInsertGlobal(kRsGlobalAddresses, VoidPtrArrayTy); in runOnModule()
234 V = M.getOrInsertGlobal(kRsGlobalSizes, SizeArrayTy); in runOnModule()
239 GlobalSizesInit = llvm::ConstantDataArray::get(M.getContext(), GVSizes32); in runOnModule()
241 GlobalSizesInit = llvm::ConstantDataArray::get(M.getContext(), GVSizes64); in runOnModule()
247 V = M.getOrInsertGlobal(kRsGlobalProperties, Int32ArrayTy); in runOnModule()
251 llvm::ConstantDataArray::get(M.getContext(), GVProperties); in runOnModule()