#include "MCTargetDesc/R600MCTargetDesc.h"
#include "R600.h"
#include "R600Defines.h"
#include "R600Subtarget.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
usingnamespacellvm;
#define DEBUG_TYPE …
namespace {
class R600ExpandSpecialInstrsPass : public MachineFunctionPass { … };
}
INITIALIZE_PASS_BEGIN(R600ExpandSpecialInstrsPass, DEBUG_TYPE,
"R600 Expand Special Instrs", false, false)
INITIALIZE_PASS_END(R600ExpandSpecialInstrsPass, DEBUG_TYPE,
"R600ExpandSpecialInstrs", false, false)
char R600ExpandSpecialInstrsPass::ID = …;
char &llvm::R600ExpandSpecialInstrsPassID = …;
FunctionPass *llvm::createR600ExpandSpecialInstrsPass() { … }
void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI,
const MachineInstr *OldMI, unsigned Op) { … }
bool R600ExpandSpecialInstrsPass::runOnMachineFunction(MachineFunction &MF) { … }