[all-commits] [llvm/llvm-project] 043733: [IR] Add the constructor of ShuffleVector for one-...

Hyeongyu Kim via All-commits all-commits at lists.llvm.org
Tue Sep 21 06:06:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 043733d677310d6b0ac465b938e82733a9f4cfce
      https://github.com/llvm/llvm-project/commit/043733d677310d6b0ac465b938e82733a9f4cfce
  Author: hyeongyu kim <gusrb406 at snu.ac.kr>
  Date:   2021-09-21 (Tue, 21 Sep 2021)

  Changed paths:
    M llvm/include/llvm/IR/Instructions.h
    M llvm/lib/IR/Instructions.cpp

  Log Message:
  -----------
  [IR] Add the constructor of ShuffleVector for one-input-vector.

One of the two inputs of the Shufflevector is often a placeholder.
Previously, there were cases where the placeholder was undef, and there were cases where it was poison.
I added these constructors to create a placeholder consistently.

Changing to use the newly added constructor will be written in a separate patch.

Reviewed By: spatel

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




More information about the All-commits mailing list