public class IfStatementBlock extends StatementBlock
Constructor and Description |
---|
IfStatementBlock() |
Modifier and Type | Method and Description |
---|---|
VariableSet |
analyze(VariableSet loPassed) |
Hop |
getPredicateHops() |
Lop |
getPredicateLops() |
VariableSet |
initializebackwardLV(VariableSet loPassed) |
VariableSet |
initializeforwardLV(VariableSet activeInPassed)
For each statement:
gen rule: for each variable read in current statement but not updated in any PRIOR statement, add to gen
Handles case where variable both read and updated in same statement (i = i + 1, i needs to be added to gen)
kill rule: for each variable updated in current statement but not read in this or any PRIOR statement,
add to kill.
|
boolean |
requiresPredicateRecompilation() |
void |
setPredicateHops(Hop hops) |
void |
setPredicateLops(Lop predicateLops) |
boolean |
updatePredicateRecompilationFlag() |
VariableSet |
validate(DMLProgram dmlProg,
VariableSet ids,
HashMap<String,ConstIdentifier> constVars,
boolean conditional) |
addStatement, addStatementBlock, getBeginColumn, getBeginLine, getConstIn, getConstOut, getDMLProg, getEndColumn, getEndLine, getFilename, getHops, getInputstoSB, getLops, getName, getNumStatements, getOutputNamesofSB, getOutputsofSB, getSBID, getStatement, getStatements, getText, getUpdateInPlaceVars, isMergeableFunctionCallBlock, isNondeterministic, isRewritableFunctionCall, isSplitDag, mergeable, mergeFunctionCalls, mergeStatementBlocks, printBlockErrorLocation, printErrorLocation, printWarningLocation, raiseValidateError, raiseValidateError, requiresRecompilation, rewriteFunctionCallStatements, rHoistFunctionCallsFromExpressions, rHoistFunctionCallsFromExpressions, rHoistFunctionCallsFromExpressions, setBeginColumn, setBeginLine, setDMLProg, setEndColumn, setEndLine, setFilename, setHops, setLops, setNondeterministic, setParseInfo, setSplitDag, setStatementFormatType, setStatementFormatType, setStatements, setText, setUpdateInPlaceVars, toString, updateRecompilationFlag
getGen, getKill, getWarn, liveIn, liveOut, setGen, setKill, setLiveIn, setLiveOut, setReadVariables, setUpdatedVariables, updateLiveVariablesOut, variablesRead, variablesUpdated
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
ctxAndFilenameToParseInfo
public VariableSet validate(DMLProgram dmlProg, VariableSet ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)
validate
in class StatementBlock
public VariableSet initializeforwardLV(VariableSet activeInPassed)
StatementBlock
initializeforwardLV
in class StatementBlock
public VariableSet initializebackwardLV(VariableSet loPassed)
initializebackwardLV
in class StatementBlock
public void setPredicateHops(Hop hops)
public Hop getPredicateHops()
public Lop getPredicateLops()
public void setPredicateLops(Lop predicateLops)
public VariableSet analyze(VariableSet loPassed)
analyze
in class StatementBlock
public boolean updatePredicateRecompilationFlag()
public boolean requiresPredicateRecompilation()
Copyright © 2020 The Apache Software Foundation. All rights reserved.