#include "NVPTXAtomicLower.h"
#include "llvm/CodeGen/StackProtector.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/Transforms/Utils/LowerAtomic.h"
#include "MCTargetDesc/NVPTXBaseInfo.h"
usingnamespacellvm;
namespace {
class NVPTXAtomicLower : public FunctionPass { … };
}
bool NVPTXAtomicLower::runOnFunction(Function &F) { … }
char NVPTXAtomicLower::ID = …;
namespace llvm {
void initializeNVPTXAtomicLowerPass(PassRegistry &);
}
INITIALIZE_PASS(…)
FunctionPass *llvm::createNVPTXAtomicLowerPass() { … }