27 return ::llvm::StringSwitch<::std::optional<BVCmpPredicate>>(str)
36 .Default(::std::nullopt);
48 default: return ::std::nullopt;
53 return (((::llvm::isa<::mlir::IntegerAttr>(attr))) && ((::llvm::cast<::mlir::IntegerAttr>(attr).getType().isSignlessInteger(64)))) && (((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 0)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 1)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 2)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 3)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 4)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 5)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 6)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 7)));
56 ::mlir::IntegerType intType = ::mlir::IntegerType::get(context, 64);
57 ::mlir::IntegerAttr baseAttr = ::mlir::IntegerAttr::get(intType,
static_cast<uint64_t
>(val));
58 return ::llvm::cast<BVCmpPredicateAttr>(baseAttr);
79 return ::llvm::StringSwitch<::std::optional<IntPredicate>>(str)
84 .Default(::std::nullopt);
92 default: return ::std::nullopt;
97 return (((::llvm::isa<::mlir::IntegerAttr>(attr))) && ((::llvm::cast<::mlir::IntegerAttr>(attr).getType().isSignlessInteger(64)))) && (((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 0)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 1)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 2)) || ((::llvm::cast<::mlir::IntegerAttr>(attr).getInt() == 3)));
100 ::mlir::IntegerType intType = ::mlir::IntegerType::get(context, 64);
101 ::mlir::IntegerAttr baseAttr = ::mlir::IntegerAttr::get(intType,
static_cast<uint64_t
>(val));
102 return ::llvm::cast<IntPredicateAttr>(baseAttr);
105 return static_cast<IntPredicate>(::mlir::IntegerAttr::getInt());
BVCmpPredicate getValue() const
static BVCmpPredicateAttr get(::mlir::MLIRContext *context, BVCmpPredicate val)
static bool classof(::mlir::Attribute attr)
static bool classof(::mlir::Attribute attr)
static IntPredicateAttr get(::mlir::MLIRContext *context, IntPredicate val)
IntPredicate getValue() const
::llvm::StringRef stringifyBVCmpPredicate(BVCmpPredicate val)
::llvm::StringRef stringifyIntPredicate(IntPredicate val)
::std::optional< IntPredicate > symbolizeIntPredicate(::llvm::StringRef str)
::std::optional< BVCmpPredicate > symbolizeBVCmpPredicate(::llvm::StringRef str)