natrual_language: EmitInstruction - This callback is invoked when an instruction is emitted , to advance the hazard state .

File: AZPRAsmPrinter

Func: EmitInstruction

Target: AZPR

Target_Clf: CPU

Compiler_Type: LLVM


ground_truth:
<s>
virtual
const
char
*
getPassName
(
)
const
{
return
"AZPR Assembly Printer"
;
}
</s>

natrual_language: getPassName - Return a nice clean name for a pass .

TS_V_token:
AZPR
"AZPR Assembly Printer"

Func: getPassName


ground_truth: <s> bool AZPRAsmPrinter :: isBlockOnlyReachableByFallthrough ( const MachineBasicBlock * MBB ) const { const MachineBasicBlock * Pred = * MBB -> pred_begin ( ) ; MachineBasicBlock :: const_pred_iterator PI = MBB -> pred_begin ( ) , PI2 = PI ; ++ PI2 ; if ( PI2 != MBB -> pred_end ( ) ) return false ; if ( ! Pred -> isLayoutSuccessor ( MBB ) ) return false ; if ( Pred -> empty ( ) ) return true ; MachineBasicBlock :: const_iterator I = Pred -> end ( ) ; while ( I != Pred -> begin ( ) && ! ( -- I ) -> isTerminator ( ) ) ; return ! ( I -> isBarrier ( ) || ( I -> getOpcode ( ) == AZPR :: BE && I -> getOperand ( 0 ) . getReg ( ) == I -> getOperand ( 1 ) . getReg ( ) ) ) ; } </s>

natrual_language: isBlockOnlyReachableByFallthough - Return true if the basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through .

Func: isBlockOnlyReachableByFallthrough


ground_truth: <s> bool AZPRAsmPrinter :: PrintAsmOperand ( const MachineInstr * MI , unsigned OpNum , unsigned AsmVariant , const char * ExtraCode , raw_ostream & O ) { const MachineOperand & MO = MI -> getOperand ( OpNum ) ; switch ( MO . getType ( ) ) { case MachineOperand :: MO_Register : O << '$' << StringRef ( AZPRInstPrinter :: getRegisterName ( MO . getReg ( ) ) ) . lower ( ) ; return false ; } return true ; } </s>

natrual_language: PrintAsmOperand - Print out an operand for an inline asm expression .

TS_V_token: AZPR AZPR AZPR

Func: PrintAsmOperand


natrual_language: Insert epilog code into the function .

File: AZPRFrameLowering

Func: emitEpilogue


natrual_language: emitProlog/emitEpilog - These methods insert prolog and epilog code into the function .

Func: emitPrologue


ground_truth: <s> bool AZPRFrameLowering :: hasFP ( const MachineFunction & MF ) const { return false ; } </s>

natrual_language: hasFP - Return true if the specified function should have a dedicated frame pointer register .

TS_V_token: AZPR AZPR

Func: hasFP


ground_truth: <s> bool AZPRPassConfig :: addInstSelector ( ) { addPass ( createAZPRISelDag ( getAZPRTargetMachine ( ) ) ) ; return false ; } </s>

natrual_language: addInstSelector - This method should install an instruction selector pass , which converts from LLVM code to machine instructions .

TS_V_token: AZPR AZPR AZPR AZPR

File: AZPRTargetMachine

Func: addInstSelector


ground_truth: <s> bool AZPRPassConfig :: addPreEmitPass ( ) { addPass ( createAZPRDelaySlotFillerPass ( getAZPRTargetMachine ( ) ) ) ; return true ; } </s>

natrual_language: This pass may be implemented by targets that want to run passes immediately before machine code is emitted .

Func: addPreEmitPass


ground_truth: <s> TargetPassConfig * AZPRTargetMachine :: createPassConfig ( PassManagerBase & PM ) { return new AZPRPassConfig ( this , PM ) ; } </s>

natrual_language: Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes .

Func: createPassConfig


ground_truth: <s> virtual const DataLayout * getDataLayout ( ) const { return & DL ; } </s>

natrual_language: Return the DataLayout associated with the module this SCEV instance is operating on .

Func: getDataLayout


ground_truth: <s> virtual const AZPRInstrInfo * getInstrInfo ( ) const { return & InstrInfo ; } </s>

natrual_language: TargetInstrInfo getter .

Func: getInstrInfo


ground_truth: <s> virtual const AZPRRegisterInfo * getRegisterInfo ( ) const { return & InstrInfo . getRegisterInfo ( ) ; } </s>

natrual_language: getRegisterInfo - TargetInstrInfo is a superset of MRegister info .

Func: getRegisterInfo


ground_truth: <s> virtual const AZPRSubtarget * getSubtargetImpl ( ) const { return & Subtarget ; } </s>

natrual_language: Virtual method implemented by subclasses that returns a reference to that target 's TargetSubtargetInfo-derived member variable .

Func: getSubtargetImpl


ground_truth:
<s>
virtual
const
char
*
getPassName
(
)
const
{
return
"AZPR Delay Slot Filler"
;
}
</s>

TS_V_token:
AZPR
"AZPR Delay Slot Filler"

File: DelaySlotFiller


ground_truth: <s> bool runOnMachineFunction ( MachineFunction & F ) { bool Changed = false ; for ( MachineFunction :: iterator FI = F . begin ( ) , FE = F . end ( ) ; FI != FE ; ++ FI ) Changed |= runOnMachineBasicBlock ( * FI ) ; return Changed ; } </s>

natrual_language: runOnMachineFunction - Emit the function body .

Func: runOnMachineFunction