Class KernelWriter
java.lang.Object
com.aparapi.internal.writer.BlockWriter
com.aparapi.internal.writer.KernelWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class BlockWriter
arrayDimMangleSuffix, arrayLengthMangleSuffix, indent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertType(String _typeDesc, boolean useClassModel, boolean isLocal) These three convert functions are here to perform any type conversion that may be required between Java and OpenCL.voidwrite(Entrypoint _entryPoint) voidwriteInstruction(Instruction _instruction) voidwriteMethod(InstructionSet.MethodCall _methodCall, ClassModel.ConstantPool.MethodEntry _methodEntry) voidwritePragma(String _name, boolean _enable) voidstatic StringwriteToString(Entrypoint _entrypoint) Methods inherited from class BlockWriter
convertCast, in, newLine, out, write, write, writeBlock, writeComposite, writeConditional, writeConditional, writeConditionalBranch16, writeGetterBlock, writeln, writeMethodBody, writeSequence
-
Field Details
-
javaToCLIdentifierMap
-
__local
- See Also:
-
__global
- See Also:
-
__constant
- See Also:
-
__private
- See Also:
-
LOCAL_ANNOTATION_NAME
-
CONSTANT_ANNOTATION_NAME
-
-
Constructor Details
-
KernelWriter
public KernelWriter()
-
-
Method Details
-
convertType
These three convert functions are here to perform any type conversion that may be required between Java and OpenCL.- Overrides:
convertTypein classBlockWriter- Parameters:
_typeDesc- String in the Java JNI notation, [I, etc- Returns:
- Suitably converted string, "char*", etc
-
writeMethod
public void writeMethod(InstructionSet.MethodCall _methodCall, ClassModel.ConstantPool.MethodEntry _methodEntry) throws CodeGenException - Overrides:
writeMethodin classBlockWriter- Throws:
CodeGenException
-
writePragma
-
write
- Specified by:
writein classBlockWriter- Throws:
CodeGenException
-
writeThisRef
public void writeThisRef()- Overrides:
writeThisRefin classBlockWriter
-
writeInstruction
- Overrides:
writeInstructionin classBlockWriter- Throws:
CodeGenException
-
writeToString
- Throws:
CodeGenException
-