Jlm
Loading...
Searching...
No Matches
alloca.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
7
8namespace jlm::llvm
9{
10
11AllocaOperation::~AllocaOperation() noexcept = default;
12
13bool
14AllocaOperation::operator==(const Operation & other) const noexcept
15{
16 // Avoid CNE for alloca operators
17 return this == &other;
18}
19
20std::string
22{
23 return "ALLOCA[" + allocatedType()->debug_string() + "]";
24}
25
26std::unique_ptr<rvsdg::Operation>
28{
29 return std::make_unique<AllocaOperation>(*this);
30}
31
32}
const std::shared_ptr< const rvsdg::Type > & allocatedType() const noexcept
Definition alloca.hpp:55
std::string debug_string() const override
Definition alloca.cpp:21
~AllocaOperation() noexcept override
std::unique_ptr< Operation > copy() const override
Definition alloca.cpp:27
Global memory state passed between functions.