Skip to content

Commit

Permalink
add tracing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGrulich committed Aug 9, 2024
1 parent 47ff0e3 commit 029b11a
Show file tree
Hide file tree
Showing 231 changed files with 338 additions and 4,792 deletions.
2 changes: 1 addition & 1 deletion nautilus/include/nautilus/val.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class val<ValueType> {

template <typename OtherType>
requires std::is_convertible_v<ValueType, OtherType>
explicit operator val<OtherType>() const {
operator val<OtherType>() const {
// cast
if SHOULD_TRACE () {
#ifdef ENABLE_TRACING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ void TraceToIRConversionPhase::IRConversionContext::processConst(int32_t, TraceT

} else if (constant->type() == typeid(uint64_t)) {
constOperation = currentBlock->addOperation<ConstIntOperation>(resultIdentifier, any_cast<uint64_t>(*constant), resultType);
} else if (constant->type() == typeid(size_t)) {
constOperation = currentBlock->addOperation<ConstIntOperation>(resultIdentifier, (uint64_t) any_cast<size_t>(*constant), resultType);

} else if (constant->type() == typeid(float)) {
constOperation = currentBlock->addOperation<ConstFloatOperation>(resultIdentifier, any_cast<float>(*constant), resultType);
Expand Down
25 changes: 0 additions & 25 deletions nautilus/test/data/after_ssa/addArrayInt32.trace

This file was deleted.

16 changes: 0 additions & 16 deletions nautilus/test/data/after_ssa/andCondition.trace

This file was deleted.

15 changes: 0 additions & 15 deletions nautilus/test/data/after_ssa/andFunction.trace

This file was deleted.

4 changes: 0 additions & 4 deletions nautilus/test/data/after_ssa/assignShl.trace

This file was deleted.

4 changes: 0 additions & 4 deletions nautilus/test/data/after_ssa/assignShr.trace

This file was deleted.

2 changes: 0 additions & 2 deletions nautilus/test/data/after_ssa/assignment1.trace

This file was deleted.

4 changes: 0 additions & 4 deletions nautilus/test/data/after_ssa/assignment2.trace

This file was deleted.

4 changes: 0 additions & 4 deletions nautilus/test/data/after_ssa/assignment3.trace

This file was deleted.

5 changes: 0 additions & 5 deletions nautilus/test/data/after_ssa/assignment4.trace

This file was deleted.

5 changes: 0 additions & 5 deletions nautilus/test/data/after_ssa/assignment5.trace

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions nautilus/test/data/after_ssa/castVoidPtr.trace

This file was deleted.

31 changes: 0 additions & 31 deletions nautilus/test/data/after_ssa/collatz.trace

This file was deleted.

21 changes: 0 additions & 21 deletions nautilus/test/data/after_ssa/complexLogicalExpressions.trace

This file was deleted.

14 changes: 0 additions & 14 deletions nautilus/test/data/after_ssa/compoundStatements.trace

This file was deleted.

12 changes: 0 additions & 12 deletions nautilus/test/data/after_ssa/conditionalReturn.trace

This file was deleted.

16 changes: 0 additions & 16 deletions nautilus/test/data/after_ssa/countDigits.trace

This file was deleted.

21 changes: 0 additions & 21 deletions nautilus/test/data/after_ssa/decimalToBinary.trace

This file was deleted.

47 changes: 0 additions & 47 deletions nautilus/test/data/after_ssa/deeplyNestedIfElseCondition.trace

This file was deleted.

38 changes: 0 additions & 38 deletions nautilus/test/data/after_ssa/deeplyNestedIfElseIfCondition.trace

This file was deleted.

17 changes: 0 additions & 17 deletions nautilus/test/data/after_ssa/digitSum.trace

This file was deleted.

4 changes: 0 additions & 4 deletions nautilus/test/data/after_ssa/doubleAddExpression.trace

This file was deleted.

25 changes: 0 additions & 25 deletions nautilus/test/data/after_ssa/doubleIfCondition.trace

This file was deleted.

Loading

0 comments on commit 029b11a

Please sign in to comment.