[Mlir-commits] [mlir] [mlir] Add FileRange location type. (PR #80213)
Bryan Tan
llvmlistbot at llvm.org
Thu Oct 3 11:55:50 PDT 2024
================
@@ -102,6 +102,44 @@ def FileLineColLoc : Builtin_LocationAttr<"FileLineColLoc"> {
let attrName = "builtin.file_line_loc";
}
+//===----------------------------------------------------------------------===//
+// FileRange
+//===----------------------------------------------------------------------===//
+
+def FileRangeLoc : Builtin_LocationAttr<"FileRangeLoc"> {
+ let summary = "A file:line:column to line:column source location range";
+ let description = [{
+ Syntax:
+
+ ```
+ filelinecol-location ::= `range(` string-literal `:` integer-literal `:`
+ integer-literal ` to ` integer-literal `)`
----------------
Technius wrote:
If the 3rd integer here is a size/length, `to` is misleading in the syntax.
https://github.com/llvm/llvm-project/pull/80213
More information about the Mlir-commits
mailing list