#include "mlir/Conversion/ArithToLLVM/ArithToLLVM.h"
#include "mlir/Conversion/FuncToLLVM/ConvertFuncToLLVMPass.h"
#include "mlir/Conversion/MemRefToLLVM/MemRefToLLVM.h"
#include "mlir/Conversion/ReconcileUnrealizedCasts/ReconcileUnrealizedCasts.h"
#include "mlir/Conversion/VectorToLLVM/ConvertVectorToLLVM.h"
#include "mlir/Conversion/VectorToSCF/VectorToSCF.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/Linalg/Passes.h"
#include "mlir/ExecutionEngine/CRunnerUtils.h"
#include "mlir/ExecutionEngine/ExecutionEngine.h"
#include "mlir/ExecutionEngine/MemRefUtils.h"
#include "mlir/ExecutionEngine/RunnerUtils.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/InitAllDialects.h"
#include "mlir/Parser/Parser.h"
#include "mlir/Pass/PassManager.h"
#include "mlir/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.h"
#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h"
#include "mlir/Target/LLVMIR/Export.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"
#include "gmock/gmock.h"
#ifdef __sparc__
#define SKIP_WITHOUT_JIT …
#else
#define SKIP_WITHOUT_JIT(x) …
#endif
usingnamespacemlir;
#ifndef _WIN32
static struct LLVMInitializer { … } initializer;
static LogicalResult lowerToLLVMDialect(ModuleOp module) { … }
TEST(MLIRExecutionEngine, SKIP_WITHOUT_JIT(AddInteger)) { … }
TEST(MLIRExecutionEngine, SKIP_WITHOUT_JIT(SubtractFloat)) { … }
TEST(NativeMemRefJit, SKIP_WITHOUT_JIT(ZeroRankMemref)) { … }
TEST(NativeMemRefJit, SKIP_WITHOUT_JIT(RankOneMemref)) { … }
TEST(NativeMemRefJit, SKIP_WITHOUT_JIT(BasicMemref)) { … }
static void memrefMultiply(::StridedMemRefType<float, 2> *memref,
int32_t coefficient) { … }
#if __has_feature(memory_sanitizer)
#define MAYBE_JITCallback …
#else
#define MAYBE_JITCallback …
#endif
TEST(NativeMemRefJit, MAYBE_JITCallback) { … }
#endif