diff options
| author | lorenzo chelini <l.chelini@icloud.com> | 2025-02-21 10:34:16 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-21 17:34:16 +0100 |
| commit | 0181af2f32e51c2ac45d96bd194884d7adfd10ca (patch) | |
| tree | ba598d9203605b4cba8c8414efb8828f2eb5c660 /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | ad0c7da95373a052f282596f736e35417b2fa65b (diff) | |
[MLIR] Imporve location tracking for `parseElementsLiteralType` (#127992)
This commit improves line location tracking in case of error reporting
to the user in `parseElementsLiteralType`. There are two cases: the type
is already parsed [1] or not yet parsed [2]. With these changes we print
the error at the attribute's location in both cases to ensure
consistency.
Case 1)
```mlir
memref<i32> = dense<[3]>
^
```
Case 2)
```mlir
dense<[3]> : memref<i32>
^
```
Note that today for a simple:
```mlir
func.func @main() {
%0 = arith.constant dense<[3]> : i32
return
}
```
we print the error after the constant:
```
./bin/c.mlir:3:3: error: elements literal must be a shaped type
return
^
```
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
