[all-commits] [llvm/llvm-project] e11497: Add a baseline test for llvm.annotation IR upgrade

Alexander Richardson via All-commits all-commits at lists.llvm.org
Wed Dec 7 10:29:37 PST 2022


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

  Changed paths:
    A llvm/test/Bitcode/upgrade-annotation.ll
    A llvm/test/Bitcode/upgrade-annotation.ll.bc
    M llvm/test/Bitcode/upgrade-ptr-annotation.ll
    M llvm/test/Bitcode/upgrade-var-annotation.ll

  Log Message:
  -----------
  Add a baseline test for llvm.annotation IR upgrade

This will be overloaded in the next commit.


  Commit: 9114ac67a986400155b8b82013d09a9e4f48e534
      https://github.com/llvm/llvm-project/commit/9114ac67a986400155b8b82013d09a9e4f48e534
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenTypeCache.h
    M clang/test/CodeGen/annotations-field.c
    M clang/test/CodeGen/annotations-global.c
    M clang/test/CodeGen/annotations-loc.c
    M clang/test/CodeGen/annotations-var.c
    M clang/test/CodeGenCXX/attr-annotate.cpp
    M clang/test/CodeGenCXX/attr-annotate2.cpp
    M clang/test/CodeGenSYCL/field-annotate-addr-space.cpp
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/test/Analysis/CostModel/X86/free-intrinsics.ll
    M llvm/test/Analysis/CostModel/free-intrinsics-datalayout.ll
    M llvm/test/Analysis/CostModel/free-intrinsics-no_info.ll
    M llvm/test/Analysis/ScalarEvolution/annotation-intrinsics.ll
    M llvm/test/Assembler/opaque-ptr-intrinsic-remangling.ll
    M llvm/test/Bitcode/upgrade-annotation.ll
    M llvm/test/Bitcode/upgrade-ptr-annotation.ll
    M llvm/test/Bitcode/upgrade-var-annotation.ll
    M llvm/test/Transforms/InstCombine/annotation-intrinsic.ll
    M llvm/test/Transforms/InstCombine/assume_inevitable.ll

  Log Message:
  -----------
  Overload all llvm.annotation intrinsics for globals argument

The global constant arguments could be in a different address space
than the first argument, so we have to add another overloaded argument.
This patch was originally made for CHERI LLVM (where globals can be in
address space 200), but it also appears to be useful for in-tree targets
as can be seen from the test diffs.

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


Compare: https://github.com/llvm/llvm-project/compare/53445f5b1cfc...9114ac67a986


More information about the All-commits mailing list