#include "NVPTX.h"
#include "NVPTXUtilities.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IntrinsicsNVPTX.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Support/CommandLine.h"
#include <cstdint>
usingnamespacellvm;
#define DEBUG_TYPE …
namespace llvm { void initializeNVVMIntrRangePass(PassRegistry &); }
namespace {
class NVVMIntrRange : public FunctionPass { … };
}
FunctionPass *llvm::createNVVMIntrRangePass() { … }
char NVVMIntrRange::ID = …;
INITIALIZE_PASS(…)
static bool addRangeAttr(uint64_t Low, uint64_t High, IntrinsicInst *II) { … }
static bool runNVVMIntrRange(Function &F) { … }
bool NVVMIntrRange::runOnFunction(Function &F) { … }
PreservedAnalyses NVVMIntrRangePass::run(Function &F,
FunctionAnalysisManager &AM) { … }