[all-commits] [llvm/llvm-project] aac844: [mlir] Improve bitEnumContains methods.

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Fri Sep 9 11:57:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aac844a4b1577947285b74d83a8e9740b9ab337b
      https://github.com/llvm/llvm-project/commit/aac844a4b1577947285b74d83a8e9740b9ab337b
  Author: Hanhan Wang <hanchung at google.com>
  Date:   2022-09-09 (Fri, 09 Sep 2022)

  Changed paths:
    M mlir/docs/OpDefinitions.md
    M mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
    M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
    M mlir/tools/mlir-tblgen/EnumsGen.cpp
    M mlir/unittests/TableGen/EnumsGenTest.cpp

  Log Message:
  -----------
  [mlir] Improve bitEnumContains methods.

https://github.com/llvm/llvm-project/commit/839b436c93604e042f74050cf2adadd75f30e898
changes the behavior. Based on the discussion, we also want to support
"and" behavior. The revision changes it into two functions, bitEnumContainsAny
and bitEnumContainsAll.

Reviewed By: krzysz00, antiagainst

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




More information about the All-commits mailing list