forked from tree-sitter/tree-sitter-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.mojo
36 lines (30 loc) · 934 Bytes
/
test.mojo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
fn blah() escaping capturing raises -> Bool:
return True
fn parameter_simd[inferred dt: DType, value: Scalar[dt]]():
print(value)
alias aaa = __mlir_type[`!kgen.pointer<!kgen.pointer<scalar<ui8>>>`]
alias f = __mlir_type[`!kgen.signature<`, Int, `>() -> !kgen.none`]
alias _mlir_type = __mlir_type[
`!lit.ref.pack<:variadic<`,
element_trait,
`> `,
element_types,
`, `,
lifetime,
`, `,
+address_space,
`>`,
]
alias aa = __mlir_type.`!kgen.array`
alias a = __mlir_type.`i1`
var file_name: __mlir_type.`!kgen.string`
line, col, file_name = __mlir_op.`kgen.source_loc`[
_properties = __mlir_attr.`{inlineCount = 1 : i64}`,
_type = (
__mlir_type.index,
__mlir_type.index,
__mlir_type.`!kgen.string`,
),
]()
return __mlir_op.`index.casts`[_type = __mlir_type.index](self.value)
alias int16 = DType(__mlir_attr.`#kgen.dtype.constant<si16> : !kgen.dtype`)