[SPIRV] code formatting
@@ -239,6 +239,8 @@ public class SPIRVUnary {
/**
* Equivalent OpenCL Code:
*
+ * Example for get_global_id:
+ *
* <code>
* int idx = get_global_id(dimensionIndex);
* </code>
@@ -262,7 +264,13 @@ public class SPIRVUnary {
// Call Thread-ID getGlobalId(0)
SPIRVId id19 = asm.module.getNextId();
- asm.currentBlockScope().add(new SPIRVOpLoad(v3long, id19, idSPIRVBuiltin, new SPIRVOptionalOperand<>(SPIRVMemoryAccess.Aligned(new SPIRVLiteralInteger(32)))));
+ asm.currentBlockScope().add(new SPIRVOpLoad( //
+ v3long, //
+ id19, //
+ idSPIRVBuiltin, //
+ new SPIRVOptionalOperand<>( //
+ SPIRVMemoryAccess.Aligned(new SPIRVLiteralInteger(32))) //
+ ));
// Intrinsic call
SPIRVId callIntrinsicId = asm.module.getNextId();
@@ -274,7 +282,14 @@ public class SPIRVUnary {
throw new RuntimeException("Not supported");
}
- asm.currentBlockScope().add(new SPIRVOpCompositeExtract(ulong, callIntrinsicId, id19, new SPIRVMultipleOperands<>(new SPIRVLiteralInteger(dimensionValue))));
+ asm.currentBlockScope().add( //
+ new SPIRVOpCompositeExtract( //
+ ulong, //
+ callIntrinsicId, //
+ id19, //
+ new SPIRVMultipleOperands<>( //
+ new SPIRVLiteralInteger(dimensionValue)) //
+ ));
SPIRVId conv = asm.module.getNextId();
// FIXME check this
@@ -282,8 +297,7 @@ public class SPIRVUnary {
asm.currentBlockScope().add(new SPIRVOpUConvert(uint, conv, callIntrinsicId));
- // XXX: Store will be performed in the Assigment, if enabled.
-
+ // Store will be performed in the Assigment, if enabled.
asm.registerLIRInstructionValue(this, conv);
}
}
