[all-commits] [llvm/llvm-project] 121a89: Fix annotations-field.c CHECK lines being ignored

Alexander Richardson via All-commits all-commits at lists.llvm.org
Thu Dec 8 12:52:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 121a89fc2aedf48ca4aee43288b67e27b71e72ed
      https://github.com/llvm/llvm-project/commit/121a89fc2aedf48ca4aee43288b67e27b71e72ed
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M clang/test/CodeGen/annotations-field.c

  Log Message:
  -----------
  Fix annotations-field.c CHECK lines being ignored

Pointed out by @jrtc27 in https://reviews.llvm.org/D138722.


  Commit: 5131f444ee7045d58f72fc99e2ac69792e8b7158
      https://github.com/llvm/llvm-project/commit/5131f444ee7045d58f72fc99e2ac69792e8b7158
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M clang/test/CodeGen/annotations-global.c

  Log Message:
  -----------
  Simplify clang/test/CodeGen/annotations-global.c CHECK lines

There is no need to run FileCheck 5 times, we can use CHECK-DAG instead.


  Commit: f850035493e6f055182b443083a04a1d80bfd5c8
      https://github.com/llvm/llvm-project/commit/f850035493e6f055182b443083a04a1d80bfd5c8
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/lib/AsmParser/LLParser.cpp
    A llvm/test/Assembler/symbolic-addrspace.ll

  Log Message:
  -----------
  [LLParser] Support symbolic address space numbers

This allows the LLParser to also accept "A", "G", and "P" in `addrspace`
usages. "A" will be replaced by the alloca address space defined in the
globals, "G" by the default globals address space and "P" by the program
address space. This makes it easier to write tests that use different
address space and only only vary the RUN: lines. Currently, the only
alternative is to pre-process the sources with a tool such as `sed`

Importantly, these new string values are only accepted in .ll files and
not stored in the bitcode format, so it does not round-trip via llvm-as
and llvm-dis (see newly added test).

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D138789


Compare: https://github.com/llvm/llvm-project/compare/100dfe7a8ad3...f850035493e6


More information about the All-commits mailing list