[all-commits] [llvm/llvm-project] 02fae2: [llvm][TableGen] Add a !initialized predicate to a...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Mon Dec 16 19:16:59 PST 2024


  Branch: refs/heads/users/krzysz00/initialized-predicate-tblgen
  Home:   https://github.com/llvm/llvm-project
  Commit: 02fae274e2d9c8d09b079a43be9159bc58b31355
      https://github.com/llvm/llvm-project/commit/02fae274e2d9c8d09b079a43be9159bc58b31355
  Author: Krzysztof Drewniak <krzysdrewniak at gmail.com>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M llvm/docs/TableGen/ProgRef.rst
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/Record.cpp
    M llvm/lib/TableGen/TGLexer.cpp
    M llvm/lib/TableGen/TGLexer.h
    M llvm/lib/TableGen/TGParser.cpp
    A llvm/test/TableGen/initialized.td

  Log Message:
  -----------
  [llvm][TableGen] Add a !initialized predicate to allow testing for ?

There are cases (like in an upcoming patch to MLIR's `Property` class) where
the ? value is a useful null value. However, existing predicates make ti difficult
to test if the value in a record one is operating is ? or not.

This commit adds the !initialized predicate, which is 1 on concrete, non-? values
and 0 on ?.


  Commit: 82fd352e54344bead4b92be38792bb902193dc42
      https://github.com/llvm/llvm-project/commit/82fd352e54344bead4b92be38792bb902193dc42
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M llvm/docs/TableGen/ProgRef.rst

  Log Message:
  -----------
  Adjust wording in documentation

Co-authored-by: Akshat Oke <Akshat.Oke at amd.com>


  Commit: 20deaa1c1513d74003b7bf84c3a15e432eb61101
      https://github.com/llvm/llvm-project/commit/20deaa1c1513d74003b7bf84c3a15e432eb61101
  Author: Krzysztof Drewniak <krzysdrewniak at gmail.com>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M llvm/lib/TableGen/Record.cpp

  Log Message:
  -----------
  Review comments


Compare: https://github.com/llvm/llvm-project/compare/d972251bfc7a...20deaa1c1513

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list