Package org.apache.sysds.hops.codegen
Class SpoofCompiler
- java.lang.Object
- 
- org.apache.sysds.hops.codegen.SpoofCompiler
 
- 
 public class SpoofCompiler extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSpoofCompiler.CompilerTypestatic classSpoofCompiler.GeneratorAPIstatic classSpoofCompiler.IntegrationTypestatic classSpoofCompiler.PlanCachePolicystatic classSpoofCompiler.PlanSelectorstatic classSpoofCompiler.RegisterAlloc
 - 
Field SummaryFields Modifier and Type Field Description static SpoofCompiler.GeneratorAPIAPIstatic SpoofCompiler.IntegrationTypeINTEGRATIONstatic SpoofCompiler.CompilerTypeJAVA_COMPILERstatic HashMap<SpoofCompiler.GeneratorAPI,Long>native_contextsstatic SpoofCompiler.PlanCachePolicyPLAN_CACHE_POLICYstatic intPLAN_CACHE_SIZEstatic SpoofCompiler.PlanSelectorPLAN_SEL_POLICYstatic booleanPRUNE_REDUNDANT_PLANSstatic booleanRECOMPILE_CODEGENstatic SpoofCompiler.RegisterAllocREG_ALLOC_POLICY
 - 
Constructor SummaryConstructors Constructor Description SpoofCompiler()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanupCodeGenerator()static PlanSelectioncreatePlanSelector()Factory method for alternative plan selection policies.static voidgenerateCode(DMLProgram dmlprog)static voidgenerateCode(Program rtprog)static ArrayList<Hop>generateCodeFromHopDAGs(ArrayList<Hop> roots)static ArrayList<Instruction>generateCodeFromHopDAGsToInst(Hop root)static ArrayList<Instruction>generateCodeFromHopDAGsToInst(StatementBlock sb, ArrayList<Hop> roots)static voidgenerateCodeFromProgramBlock(ProgramBlock current)static voidgenerateCodeFromStatementBlock(StatementBlock current)static voidloadNativeCodeGenerator(SpoofCompiler.GeneratorAPI generator)static ArrayList<Hop>optimize(ArrayList<Hop> roots, boolean recompile)Main interface of sum-product optimizer, statement block dag.static Hopoptimize(Hop root, boolean recompile)Main interface of sum-product optimizer, predicate dag.static voidsetConfiguredPlanSelector()static voidsetExecTypeSpecificJavaCompiler()static voidunloadNativeCodeGenerator()
 
- 
- 
- 
Field Detail- 
JAVA_COMPILERpublic static SpoofCompiler.CompilerType JAVA_COMPILER 
 - 
PLAN_SEL_POLICYpublic static SpoofCompiler.PlanSelector PLAN_SEL_POLICY 
 - 
INTEGRATIONpublic static final SpoofCompiler.IntegrationType INTEGRATION 
 - 
RECOMPILE_CODEGENpublic static final boolean RECOMPILE_CODEGEN - See Also:
- Constant Field Values
 
 - 
PRUNE_REDUNDANT_PLANSpublic static final boolean PRUNE_REDUNDANT_PLANS - See Also:
- Constant Field Values
 
 - 
PLAN_CACHE_POLICYpublic static SpoofCompiler.PlanCachePolicy PLAN_CACHE_POLICY 
 - 
PLAN_CACHE_SIZEpublic static final int PLAN_CACHE_SIZE - See Also:
- Constant Field Values
 
 - 
REG_ALLOC_POLICYpublic static final SpoofCompiler.RegisterAlloc REG_ALLOC_POLICY 
 - 
APIpublic static SpoofCompiler.GeneratorAPI API 
 - 
native_contextspublic static HashMap<SpoofCompiler.GeneratorAPI,Long> native_contexts 
 
- 
 - 
Method Detail- 
loadNativeCodeGeneratorpublic static void loadNativeCodeGenerator(SpoofCompiler.GeneratorAPI generator) 
 - 
unloadNativeCodeGeneratorpublic static void unloadNativeCodeGenerator() 
 - 
generateCodepublic static void generateCode(DMLProgram dmlprog) 
 - 
generateCodepublic static void generateCode(Program rtprog) 
 - 
generateCodeFromStatementBlockpublic static void generateCodeFromStatementBlock(StatementBlock current) 
 - 
generateCodeFromProgramBlockpublic static void generateCodeFromProgramBlock(ProgramBlock current) 
 - 
generateCodeFromHopDAGsToInstpublic static ArrayList<Instruction> generateCodeFromHopDAGsToInst(StatementBlock sb, ArrayList<Hop> roots) 
 - 
generateCodeFromHopDAGsToInstpublic static ArrayList<Instruction> generateCodeFromHopDAGsToInst(Hop root) 
 - 
optimizepublic static Hop optimize(Hop root, boolean recompile) Main interface of sum-product optimizer, predicate dag.- Parameters:
- root- dag root node
- recompile- true if invoked during dynamic recompilation
- Returns:
- dag root node of modified dag
 
 - 
optimizepublic static ArrayList<Hop> optimize(ArrayList<Hop> roots, boolean recompile) Main interface of sum-product optimizer, statement block dag.- Parameters:
- roots- dag root nodes
- recompile- true if invoked during dynamic recompilation
- Returns:
- dag root nodes of modified dag
 
 - 
cleanupCodeGeneratorpublic static void cleanupCodeGenerator() 
 - 
createPlanSelectorpublic static PlanSelection createPlanSelector() Factory method for alternative plan selection policies.- Returns:
- plan selector
 
 - 
setConfiguredPlanSelectorpublic static void setConfiguredPlanSelector() 
 - 
setExecTypeSpecificJavaCompilerpublic static void setExecTypeSpecificJavaCompiler() 
 
- 
 
-