scale.backend
Class CommentMarker

java.lang.Object
  extended by scale.backend.Instruction
      extended by scale.backend.Marker
          extended by scale.backend.CommentMarker
All Implemented Interfaces:
java.lang.Cloneable

public class CommentMarker
extends Marker

This class is used to associate comments with instructions and is used for debugging backend code generators.

$Id: CommentMarker.java,v 1.4 2005-06-15 04:17:41 asmith Exp $

Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Constructor Summary
CommentMarker(java.lang.String comment)
          Mark the position corresponding to a source program line.
 
Method Summary
 void assembler(Assembler asm, Emit emit)
          Insert the assembler representation of the comment into the output stream.
 java.lang.Object getComment()
          Return the other associated information.
 java.lang.String toString()
           
 
Methods inherited from class scale.backend.Marker
getExecutionCycles, getOpcode, independent, instructionSize, isMarker, nullify, remapDestRegister, remapRegisters, remapSrcRegister, specifyRegisterUsage
 
Methods inherited from class scale.backend.Instruction
canBeDeleted, clone, copy, defs, ehash, getBBID, getCopyDest, getCopySrc, getDestRegister, getFunctionalUnit, getLoopNumber, getNext, getPredicate, getPredicates, getSrcRegisters, getTag, isBranch, isCopy, isLabel, isLoad, isMandatory, isPhi, isPredicated, isPredicatedOnTrue, isPrefetch, isSpillInstruction, isSpillLoadPoint, isSpillStorePoint, isStore, markSpillInstruction, mods, nullified, numPredicates, removePredicates, setBBID, setLoopNumber, setMandatory, setNext, setPredicate, setPredicate, setPredicatedOnTrue, setPredicates, setsSpecialReg, setTag, specifyNotSpillLoadPoint, specifySpillStorePoint, uses
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommentMarker

public CommentMarker(java.lang.String comment)
Mark the position corresponding to a source program line.

Parameters:
comment - is the comment
Method Detail

getComment

public java.lang.Object getComment()
Return the other associated information.


assembler

public void assembler(Assembler asm,
                      Emit emit)
Insert the assembler representation of the comment into the output stream.

Overrides:
assembler in class Marker

toString

public java.lang.String toString()
Overrides:
toString in class Marker