mini-llvm 0.1.0
Loading...
Searching...
No Matches
ReadOnly.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5#include <memory>
6#include <string>
7
9
10namespace mini_llvm::ir {
11
12class ReadOnly final : public Attribute {
13public:
14 std::string format() const override {
15 return "readonly";
16 }
17
18 std::unique_ptr<Attribute> clone() const override {
19 return std::make_unique<ReadOnly>();
20 }
21};
22
23} // namespace mini_llvm::ir
Attribute(const Attribute &)=delete
Definition ReadOnly.h:12
std::string format() const override
Definition ReadOnly.h:14
std::unique_ptr< Attribute > clone() const override
Definition ReadOnly.h:18
Definition Argument.h:13