java.lang.Object
dev.civl.mc.transform.IF.TransformerFactory
This class manages the set of transformations provided by CIVL.
It provides a static method
to apply a
certain transformer to a given program.
invalid reference
#applyTransformer(Program, String, List, ASTBuilder)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformRecordgetContractTransformerRecord(String targetFunction, CIVLConfiguration civlConfig) dev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformRecordgetIntOperationTransformerRecord(Map<String, String> macros, CIVLConfiguration config) dev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformRecordgetLoopContractTransformerRecord(CIVLConfiguration civlConfig) dev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.Transformerdev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformergetOpenMPSimplifier(CIVLConfiguration config) dev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformRecorddev.civl.abc.transform.IF.TransformRecordCreates a new instance of aShortCircuitTransformerstatic booleanhasFunctionCalls(dev.civl.abc.ast.IF.AST ast, List<String> functions)
-
Constructor Details
-
TransformerFactory
public TransformerFactory(dev.civl.abc.ast.IF.ASTFactory astFactory)
-
-
Method Details
-
getGeneralTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getGeneralTransformerRecord() -
getContractTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getContractTransformerRecord(String targetFunction, CIVLConfiguration civlConfig) -
getLoopContractTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getLoopContractTransformerRecord(CIVLConfiguration civlConfig) - Returns:
- A
TransformRecordfor loop contract transformer
-
getAnnotationTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getAnnotationTransformerRecord() -
getIOTransformerRecord
-
getOpenMPSimplifierRecord
public dev.civl.abc.transform.IF.TransformRecord getOpenMPSimplifierRecord(CIVLConfiguration config) -
getMPI2CIVLTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getMPI2CIVLTransformerRecord() -
getOpenMP2CIVLTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getOpenMP2CIVLTransformerRecord(CIVLConfiguration config) -
getPthread2CIVLTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getPthread2CIVLTransformerRecord() -
getCuda2CIVLTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getCuda2CIVLTransformerRecord() -
getShortCircuitTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getShortCircuitTransformerRecord(CIVLConfiguration config) Creates a new instance of aShortCircuitTransformer- Parameters:
config- A reference toCIVLConfiguration- Returns:
- A
TransformRecordof aShortCircuitTransformer.
-
getIntOperationTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getIntOperationTransformerRecord(Map<String, String> macros, CIVLConfiguration config) -
getComplexTransformerRecord
public dev.civl.abc.transform.IF.TransformRecord getComplexTransformerRecord() -
hasFunctionCalls
-
getOpenMPSimplifier
-
getOpenMP2CIVLTransformer
-