[all-commits] [llvm/llvm-project] 66963b: [VP] make getFunctionalOpcode return an Optional

Simon Moll via All-commits all-commits at lists.llvm.org
Wed May 19 08:09:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66963bf3819df4f47bd874a946af058f0c1c4ec0
      https://github.com/llvm/llvm-project/commit/66963bf3819df4f47bd874a946af058f0c1c4ec0
  Author: Simon Moll <simon.moll at emea.nec.com>
  Date:   2021-05-19 (Wed, 19 May 2021)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicInst.h
    M llvm/lib/CodeGen/ExpandVectorPredication.cpp
    M llvm/lib/IR/IntrinsicInst.cpp
    M llvm/unittests/IR/VPIntrinsicTest.cpp

  Log Message:
  -----------
  [VP] make getFunctionalOpcode return an Optional

The operation of some VP intrinsics do/will not map to regular
instruction opcodes.  Returning 'None' seems more intuitive here than
'Instruction::Call'.

Reviewed By: frasercrmck

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




More information about the All-commits mailing list