Skip to content

Commit 1f38539

Browse files
committed
Add documentation comments
1 parent a688ec2 commit 1f38539

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRVPass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ struct GPUToSPIRVPass final : impl::ConvertGPUToSPIRVBase<GPUToSPIRVPass> {
4848
void runOnOperation() override;
4949

5050
private:
51+
/// Queries the target environment from 'targets' attribute of the given
52+
/// `moduleOp`.
5153
spirv::TargetEnvAttr lookupTargetEnvInTargets(gpu::GPUModuleOp moduleOp);
54+
55+
/// Queries the target environment from 'targets' attribute of the given
56+
/// `moduleOp` or returns target environment as returned by
57+
/// `spirv::lookupTargetEnvOrDefault` if not provided by 'targets'.
5258
spirv::TargetEnvAttr lookupTargetEnvOrDefault(gpu::GPUModuleOp moduleOp);
5359
bool mapMemorySpace;
5460
};

0 commit comments

Comments
 (0)