Jlm
Loading...
Searching...
No Matches
jlm
llvm
ir
operators
delta.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Nico Reißmann <nico.reissmann@gmail.com>
3
* See COPYING for terms of redistribution.
4
*/
5
6
#include <
jlm/llvm/ir/operators/delta.hpp
>
7
#include <
jlm/util/strfmt.hpp
>
8
9
namespace
jlm::llvm
10
{
11
12
LlvmDeltaOperation::~LlvmDeltaOperation
() noexcept = default;
13
14
std::
string
15
LlvmDeltaOperation
::debug_string()
const
16
{
17
return
util::strfmt
(
"DELTA["
, name(),
"]"
);
18
}
19
20
std::unique_ptr<rvsdg::Operation>
21
LlvmDeltaOperation::copy
()
const
22
{
23
return
std::make_unique<LlvmDeltaOperation>(*
this
);
24
}
25
26
bool
27
LlvmDeltaOperation::operator==
(
const
Operation & other)
const
noexcept
28
{
29
const
auto
op =
dynamic_cast<
const
LlvmDeltaOperation
*
>
(&other);
30
return
op && op->
name_
== name_ && op->linkage_ == linkage_ && op->constant() == constant()
31
&& op->Section_ == Section_ && op->alignment_ == alignment_ && *op->Type() == *Type();
32
}
33
34
}
jlm::llvm::LlvmDeltaOperation
Delta operation.
Definition
delta.hpp:20
jlm::llvm::LlvmDeltaOperation::operator==
bool operator==(const Operation &other) const noexcept override
Definition
delta.cpp:27
jlm::llvm::LlvmDeltaOperation::~LlvmDeltaOperation
~LlvmDeltaOperation() noexcept override
jlm::llvm::LlvmDeltaOperation::name_
std::string name_
Definition
delta.hpp:100
jlm::llvm::LlvmDeltaOperation::copy
std::unique_ptr< Operation > copy() const override
Definition
delta.cpp:21
delta.hpp
jlm::llvm
Global memory state passed between functions.
Definition
IpGraphToLlvmConverter.cpp:40
jlm::util::strfmt
static std::string strfmt(Args... args)
Definition
strfmt.hpp:35
strfmt.hpp
Generated by
1.9.8