[all-commits] [llvm/llvm-project] 34528c: Copy Elementtype Attribute to IR at Link step

Andy Kaylor via All-commits all-commits at lists.llvm.org
Tue Sep 7 11:47:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34528c32d23f98312434bb8d67510bef616e5b44
      https://github.com/llvm/llvm-project/commit/34528c32d23f98312434bb8d67510bef616e5b44
  Author: Andy Kaylor <andrew.kaylor at intel.com>
  Date:   2021-09-07 (Tue, 07 Sep 2021)

  Changed paths:
    M llvm/lib/Linker/IRMover.cpp
    M llvm/lib/Transforms/Utils/ValueMapper.cpp
    A llvm/test/Linker/Inputs/elementtype-struct-2.ll
    A llvm/test/Linker/elementtype-struct-1.ll

  Log Message:
  -----------
  Copy Elementtype Attribute to IR at Link step

Copying IR during linking causes a type mismatch due to the field being missing in IRMover/Valuemapper. Adds the full range of typed attributes including elementtype attribute in the copy functions.

Patch by Chenyang Liu

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




More information about the All-commits mailing list