picceler
Loading...
Searching...
No Matches
mlir_gen.cpp File Reference
#include "mlir_gen.h"
#include <cmath>
#include <cstdint>
#include <limits>
#include "llvm/ADT/APFloat.h"
#include "spdlog/spdlog.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/IR/Dialect.h"
#include "mlir/Dialect/Math/IR/Math.h"
#include "ops.h"
#include "types.h"

Namespaces

namespace  picceler

Enumerations

enum class  picceler::BinaryOperatorType : uint8_t {
  picceler::Add , picceler::Sub , picceler::Mul , picceler::Div ,
  picceler::Equal , picceler::NotEqual , picceler::LessThan , picceler::LessEqual ,
  picceler::GreaterThan , picceler::GreaterEqual
}

Functions

BinaryOperatorType picceler::getBinaryOpType (const std::string &opStr)
mlir::Value picceler::coerceValueToInt64 (mlir::OpBuilder &builder, mlir::Location loc, mlir::Value value, llvm::StringRef opName, llvm::StringRef argName)
 Coerces a given MLIR value to a 64-bit integer if possible, with special handling for constants.