- Mar 30, 2019
-
-
Uday Bondhugula authored
Run test case: $ mlir-opt test/IR/parser-affine-map.mlir test/IR/parser-affine-map.mlir:3:30: error: expect '(' at start of map range #hello_world2 (i, j) [s0] -> i+s0, j) ^ PiperOrigin-RevId: 202736856 -
Chris Lattner authored
to share code a bit more, and fixes a diagnostic bug Uday pointed out where parseCommaSeparatedList would print the wrong diagnostic when the end signifier was not a ). PiperOrigin-RevId: 202676858
-
Chris Lattner authored
class. Introduce an Identifier class to MLIRContext to represent uniqued identifiers, introduce string literal support to the lexer, introducing parser and printer support etc. PiperOrigin-RevId: 202592007
-
Tatiana Shpeisman authored
Representing function arguments is still TODO. Supporting instructions other than return is also TODO. PiperOrigin-RevId: 202570934
-
MLIR Team authored
- parsing affine map identifiers - place-holder classes for AffineMap - module contains a list of affine maps (defined at the top level). PiperOrigin-RevId: 202336919
-
Jacques Pienaar authored
For checking parse errors, the input file is split and failures reported per memory buffer. Simply reporting the errors loses the mapping back to the original file. Change the reporting to instead relate the error reported back to the original file. Use SourceMgr's PrintMessage consistently for errors and relates back to file being parsed. PiperOrigin-RevId: 202136152
-
Jacques Pienaar authored
Change from using FileCheck to directly verifying the message (simple substring checking) and line number of the error. PiperOrigin-RevId: 201955181
-
Jacques Pienaar authored
Add diagnostic reporter function to lexer/parser and use that from mlir-opt to report errors instead of having the lexer/parser print the errors. PiperOrigin-RevId: 201892004
-
Chris Lattner authored
references. PiperOrigin-RevId: 201872745
-
Jacques Pienaar authored
Add parsing tests with errors. Follows direct path of splitting file into test groups (using a marker) and parsing each section individually. The expected errors are checked using FileCheck and parser error does not result in terminating parsing the rest of the file if check-parser-error. This is an interim approach until refactoring lexer/parser. PiperOrigin-RevId: 201867941
-
MLIR Team authored
PiperOrigin-RevId: 201830967
-
MLIR Team authored
PiperOrigin-RevId: 201830793
-
Chris Lattner authored
This is pretty much minimal scaffolding for this step. Basic block arguments, instructions, other terminators, a proper IR representation for blocks/instructions, etc are all coming. PiperOrigin-RevId: 201826439
-
Chris Lattner authored
vector types. tensors and memref types are still TODO, and would be a good starter project for someone. PiperOrigin-RevId: 201782748
-
Chris Lattner authored
Semi-affine maps and address spaces are not yet supported (someone want to take this on?). We also don't generate IR objects for types yet, which I plan to tackle next. PiperOrigin-RevId: 201754283
-
Chris Lattner authored
arguments. PiperOrigin-RevId: 201706570
-
Chris Lattner authored
filename, and printing of trivial stuff. There is no parser yet, so the input file is ignored. PiperOrigin-RevId: 201596916
-
MLIR Team authored
PiperOrigin-RevId: 201554536
-
Chris Lattner authored
PiperOrigin-RevId: 201540159
-
jpienaar authored
-