Skip to content

Commit 405959b

Browse files
AdUhTkJmkoparasy
authored andcommitted
[CIR][CUDA] Register __device__ global variables
1 parent 349bba3 commit 405959b

File tree

3 files changed

+447
-338
lines changed

3 files changed

+447
-338
lines changed

clang/include/clang/CIR/Dialect/IR/CIRDataLayout.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ class CIRDataLayout {
129129
mlir::Type getCharType(mlir::MLIRContext *ctx) const {
130130
return typeSizeInfo.getCharType(ctx);
131131
}
132+
133+
mlir::Type getSizeType(mlir::MLIRContext *ctx) const {
134+
return typeSizeInfo.getSizeType(ctx);
135+
}
132136
};
133137

134138
/// Used to lazily calculate structure layout information for a target machine,

0 commit comments

Comments
 (0)