llvm-project/mlir/test
River Riddle abe3e5babd [mlir] Add support for generating debug locations from intermediate levels of the IR.
Summary:
This revision adds a utility to generate debug locations from the IR during compilation, by snapshotting to a output stream and using the locations that operations were dumped in that stream. The new locations may either;
* Replace the original location of the operation.

old:
   loc("original_source.cpp":1:1)
new:
   loc("snapshot_source.mlir":10:10)

* Fuse with the original locations as NamedLocs with a specific tag.

old:
    loc("original_source.cpp":1:1)
new:
    loc(fused["original_source.cpp":1:1, "snapshot"("snapshot_source.mlir":10:10)])

This feature may be used by a debugger to display the code at various different levels of the IR. It would also be able to show the different levels of IR attached to a specific source line in the original source file.

This feature may also be used to generate locations for operations generated during compilation, that don't necessarily have a user source location to attach to.

This requires changes in the printer to track the locations of operations emitted in the stream. Moving forward we need to properly(and efficiently) track the number of newlines emitted to the stream during printing.

Differential Revision: https://reviews.llvm.org/D74019
2020-02-08 15:11:29 -08:00
..
AffineOps [mlir] Add AffineMaxOp 2020-02-06 10:26:50 +01:00
Analysis [mlir] Update the CallGraph for nested symbol references, and simplify CallableOpInterface 2020-01-13 15:51:28 -08:00
Conversion [mlir][VectorOps] Introduce a `vector.fma` op that works on n-D vectors and lowers to `llvm.intrin.fmuladd` 2020-02-07 15:44:53 -05:00
Dialect [mlir][spirv] Adding sin op in the GLSL extension 2020-02-07 16:36:12 -05:00
EDSC [mlir][EDSC] NFC - Cleanups to builder-api-test.cpp 2020-01-31 16:15:22 -05:00
Examples [mlir] Replace toy::DeadFunctionEliminationPass with symbolDCEPass. 2020-01-27 23:48:06 -08:00
IR [mlir][AsmPrinter] Fix edge case when printing floating point values. 2020-02-06 18:05:53 -08:00
Pass Refactor the way that pass options are specified. 2019-12-23 16:48:22 -08:00
Quantizer Convert the Canonicalize and CSE passes to generic Operation Passes. 2019-10-24 15:01:09 -07:00
SDBM Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
Target [mlir][VectorOps] Expose and use llvm.intrin.fma* 2020-02-07 15:38:40 -05:00
Transforms [mlir] Add support for generating debug locations from intermediate levels of the IR. 2020-02-08 15:11:29 -08:00
Unit Add build files and update README. 2019-03-30 11:23:22 -07:00
lib Revert "[mlir] Adds affine loop fusion transformation function to LoopFusionUtils." 2020-02-06 16:46:28 +00:00
mlir-cpu-runner [mlir][VectorOps] Generalized vector.print to i32/i64 2020-02-07 09:25:30 -08:00
mlir-cuda-runner [MLIR] Make gpu.launch implicitly capture uses of values defined above. 2020-02-03 10:08:48 +01:00
mlir-tblgen [mlir] Emit a fatal error when the assembly format is invalid 2020-02-03 22:14:33 -08:00
APITest.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
CMakeLists.txt [mlir][spirv] Add basic definitions for supporting availability 2019-12-27 16:25:09 -05:00
lit.cfg.py Automated rollback of commit d60133f89b 2019-11-26 08:47:48 -08:00
lit.site.cfg.py.in Automated rollback of commit d60133f89b 2019-11-26 08:47:48 -08:00