|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.backend.Generator
scale.backend.trips2.Trips2Generator
scale.backend.trips2.TripsPGenerator
public class TripsPGenerator
This class converts PTIL into TRIPS instructions.
$Id: TripsPGenerator.java,v 1.15 2006-11-16 17:49:42 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
| Field Summary |
|---|
| Fields inherited from class scale.backend.trips2.Trips2Generator |
|---|
areaNames, ARG_SAVE_OFFSET, BSS, DATA, display, doBBID, doBranchIds, doCutAnalysis, enableStabs, hbStart, LIT4, LIT8, LITA, MAX_ARG_REGS, RCONST, RDATA, SAVED_REG_SIZE, SBSS, SDATA, srcLinePerBlock, TEXT |
| Fields inherited from class scale.backend.Generator |
|---|
ADD, addrDisp, AND, annotateCode, ansic, ANSIC, branchPrediction, callsRoutine, cg, classTrace, codeMap, commutative, currentBeginMarker, currentRoutine, dataAreas, DEBUG, DIV, fieldAlignment, genDebugInfo, lastInstruction, lastLabel, LINENUM, lineNumbers, little, machine, MOD, MUL, naln, NALN, nextArea, nis, NIS, nph, NPH, operation, OR, predicatedOnTrue, predicateReg, readOnlyDataArea, registers, resultReg, resultRegAddressAlignment, resultRegAddressOffset, resultRegMode, resultRegSize, returnInst, scribble, SLL, SRA, SRL, stkPtrReg, SUB, successorCFGNode, trace, un, useMemory, usesAlloca, usesVaStart, XOR |
| Constructor Summary | |
|---|---|
TripsPGenerator(CallGraph cg,
Machine machine,
int features)
|
|
| Method Summary | |
|---|---|
protected void |
addPassThroughItem(java.lang.String item)
Add a string which should be passed through to the TIL unchanged. |
void |
generate()
Generate the machine instructions for each routine in the call graph. |
void |
generateScribble()
Generate the machine instructions for a CFG. |
protected Vector<java.lang.String> |
getPassThroughItems()
Return the list of strings which should be passed through to the TIL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TripsPGenerator(CallGraph cg,
Machine machine,
int features)
cg - is the call graph to be transformedmachine - specifies machine detailsfeatures - controls the instructions generated| Method Detail |
|---|
public void generate()
generate in class Generatorpublic void generateScribble()
generateScribble in class Trips2Generatorprotected void addPassThroughItem(java.lang.String item)
protected Vector<java.lang.String> getPassThroughItems()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||