1. Jul 16, 2021
    • Nikita Popov's avatar
      [IR] Add elementtype attribute · c191035f
      Nikita Popov authored
      This implements the elementtype attribute specified in D105407. It
      just adds the attribute and the specified verifier rules, but
      doesn't yet make use of it anywhere.
      
      Differential Revision: https://reviews.llvm.org/D106008
      c191035f
    • Nikita Popov's avatar
      [LangRef] Add elementtype attribute · 1fd23a06
      Nikita Popov authored
      This adds an elementtype(<ty>) attribute, which can be used to
      attach an element type to a pointer typed argument. It is similar
      to byval/byref in purpose, but unlike those does not carry any
      specific semantics by itself. However, certain intrinsics may
      require it and interpret it in specific ways.
      
      The in-tree use cases for this that I'm currently aware of are:
      
          call ptr @llvm.preserve.array.access.index.p0.p0(ptr elementtype(%ty) %base, i32 %dim, i32 %index)
          call ptr @llvm.preserve.struct.access.index.p0.p0(ptr elementtype(%ty) %base, i32 %gep_index, i32 %di_index)
          call token @llvm.experimental.gc.statepoint.p0(i64 0, i32 0, ptr elementtype(void ()) @foo, i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %obj)
      
      Notably, the gc.statepoint case needs a function as element type,
      in which case the workaround of adding a separate %ty undef
      argument would not work, as arguments cannot be unsized.
      
      Differential Revision: https://reviews.llvm.org/D105407
      1fd23a06
    • Arthur Eubanks's avatar
      [InstCombine] Look through invariant group intrinsics when removing malloc · 04b75c05
      Arthur Eubanks authored
      Fixes some regressions with -fstrict-vtable-pointers in llvm-test-suite.
      
      Reviewed By: lebedev.ri
      
      Differential Revision: https://reviews.llvm.org/D106017
      04b75c05
    • Geoffrey Martin-Noble's avatar
      [Bazel] Update for 01bdb0f7 · ab03ef12
      Geoffrey Martin-Noble authored
      Update the build files for
      https://github.com/llvm/llvm-project/commit/01bdb0f75efb
      
      Tested:
      bazel query //... + @llvm-project//... | xargs bazel test --config=generic_clang --config=rbe --test_output=errors --test_ta
      g_filters=-nobuildkite --build_tag_filters=-nobuildkite
      
      Differential Revision: https://reviews.llvm.org/D106075
      ab03ef12
  2. Jul 15, 2021