• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daisytuner / sdfglib / 18318176242

07 Oct 2025 03:42PM UTC coverage: 61.593% (+0.5%) from 61.066%
18318176242

Pull #262

github

web-flow
Merge 98864a558 into 82460a9ec
Pull Request #262: Tasklets, Intrinsics and Library Nodes

84 of 418 new or added lines in 29 files covered. (20.1%)

153 existing lines in 17 files now uncovered.

8979 of 14578 relevant lines covered (61.59%)

103.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/data_flow/library_nodes/math/ml/div.cpp
1
#include "sdfg/data_flow/library_nodes/math/ml/div.h"
2

3
#include "sdfg/analysis/analysis.h"
4
#include "sdfg/builder/structured_sdfg_builder.h"
5

6
#include "sdfg/analysis/scope_analysis.h"
7

8
namespace sdfg {
9
namespace math {
10
namespace ml {
11

12
DivNode::DivNode(
×
13
    size_t element_id,
14
    const DebugInfo& debug_info,
15
    const graph::Vertex vertex,
16
    data_flow::DataFlowGraph& parent,
17
    const std::vector<symbolic::Expression>& shape
18
)
NEW
19
    : ElementWiseBinaryNode(element_id, debug_info, vertex, parent, LibraryNodeType_Div, shape) {}
×
20

21
bool DivNode::expand_operation(
×
22
    builder::StructuredSDFGBuilder& builder,
23
    analysis::AnalysisManager& analysis_manager,
24
    structured_control_flow::Sequence& body,
25
    const std::string& input_name_a,
26
    const std::string& input_name_b,
27
    const std::string& output_name,
28
    const types::IType& input_type_a,
29
    const types::IType& input_type_b,
30
    const types::IType& output_type,
31
    const data_flow::Subset& subset
32
) {
33
    // Add code
34
    auto& code_block = builder.add_block(body);
×
35
    auto& input_node_a = builder.add_access(code_block, input_name_a);
×
36
    auto& input_node_b = builder.add_access(code_block, input_name_b);
×
37
    auto& output_node = builder.add_access(code_block, output_name);
×
38

NEW
39
    auto& tasklet = builder.add_tasklet(code_block, data_flow::TaskletCode::fp_div, "_out", {"_in1", "_in2"});
×
40

41
    builder.add_computational_memlet(code_block, input_node_a, tasklet, "_in1", subset, input_type_a);
×
42
    builder.add_computational_memlet(code_block, input_node_b, tasklet, "_in2", subset, input_type_b);
×
43
    builder.add_computational_memlet(code_block, tasklet, "_out", output_node, subset, output_type);
×
44

45
    return true;
×
46
}
×
47

48
std::unique_ptr<data_flow::DataFlowNode> DivNode::
49
    clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent) const {
×
50
    return std::unique_ptr<
×
51
        data_flow::DataFlowNode>(new DivNode(element_id, this->debug_info(), vertex, parent, this->shape_));
×
52
}
×
53

54
} // namespace ml
55
} // namespace math
56
} // namespace sdfg
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc