[all-commits] [llvm/llvm-project] a9e546: [TableGen][NFC] convert TreePatternNode pointers t...

Tomas Matheson via All-commits all-commits at lists.llvm.org
Fri Feb 9 05:35:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a9e546cc71e72f9febda174ed1ada70c584628c2
      https://github.com/llvm/llvm-project/commit/a9e546cc71e72f9febda174ed1ada70c584628c2
  Author: Tomas Matheson <76168689+tmatheson-arm at users.noreply.github.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M llvm/utils/TableGen/CodeGenDAGPatterns.cpp
    M llvm/utils/TableGen/CodeGenDAGPatterns.h
    M llvm/utils/TableGen/DAGISelEmitter.cpp
    M llvm/utils/TableGen/DAGISelMatcher.cpp
    M llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
    M llvm/utils/TableGen/DAGISelMatcherGen.cpp
    M llvm/utils/TableGen/DAGISelMatcherOpt.cpp
    M llvm/utils/TableGen/FastISelEmitter.cpp
    M llvm/utils/TableGen/GlobalISelEmitter.cpp

  Log Message:
  -----------
  [TableGen][NFC] convert TreePatternNode pointers to references (#81134)

Almost all uses of `*TreePatternNode` expect it to be non-null. There
was the occasional check that it wasn't, which I have removed. Making
them references makes it clear that they exist.

This was attempted in 2018 (1b465767d6ca69f4b7201503f5f21e6125fe049a)
for `TreePatternNode::getChild()` but that was reverted.




More information about the All-commits mailing list