Jlm
Macros
IntegerOperationsJlmToMlirToJlmTests.cpp File Reference
#include <gtest/gtest.h>
#include <jlm/llvm/ir/operators/delta.hpp>
#include <jlm/llvm/ir/operators/lambda.hpp>
#include <jlm/llvm/ir/RvsdgModule.hpp>
#include <jlm/llvm/ir/types.hpp>
#include <jlm/mlir/backend/JlmToMlirConverter.hpp>
#include <jlm/mlir/frontend/MlirToJlmConverter.hpp>
#include <jlm/rvsdg/bitstring/constant.hpp>
#include <jlm/rvsdg/simple-node.hpp>
Include dependency graph for IntegerOperationsJlmToMlirToJlmTests.cpp:

Go to the source code of this file.

Macros

#define REGISTER_INT_BINARY_OP_TEST(JLM_OP, MLIR_NS, MLIR_OP, TEST_NAME)
 
#define REGISTER_INT_COMP_OP_TEST(JLM_OP, PREDICATE, TEST_NAME)
 

Macro Definition Documentation

◆ REGISTER_INT_BINARY_OP_TEST

#define REGISTER_INT_BINARY_OP_TEST (   JLM_OP,
  MLIR_NS,
  MLIR_OP,
  TEST_NAME 
)
Value:
TEST(IntegerOperationConversionTests, TEST_NAME) \
{ \
return TestIntegerBinaryOperation< \
jlm::llvm::Integer##JLM_OP##Operation, \
::mlir::MLIR_NS::MLIR_OP>(); \
}
TEST(DeadNodeEliminationTests, TestDeadLoopNode)

Definition at line 121 of file IntegerOperationsJlmToMlirToJlmTests.cpp.

◆ REGISTER_INT_COMP_OP_TEST

#define REGISTER_INT_COMP_OP_TEST (   JLM_OP,
  PREDICATE,
  TEST_NAME 
)
Value:
TEST(IntegerOperationConversionTests, TEST_NAME) \
{ \
IntegerComparisonOpTest<jlm::llvm::Integer##JLM_OP##Operation> test = { \
::mlir::arith::CmpIPredicate::PREDICATE, \
#TEST_NAME \
}; \
return TestIntegerComparisonOperation(test); \
}

Definition at line 250 of file IntegerOperationsJlmToMlirToJlmTests.cpp.