diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-01 17:36:40 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-01 17:36:40 +0800 |
| commit | 787f3a7a20958bfa6f231abccc617f4d8de25c4d (patch) | |
| tree | 775d2913f48fc5f3a6e44bc6da986da9e52754ef /backend/lib/CodeGen/MachineMemOperand.cpp | |
| parent | 77d76b73a614820bf45024b053db376f35b06d10 (diff) | |
| download | rcc-project-787f3a7a20958bfa6f231abccc617f4d8de25c4d.tar.gz rcc-project-787f3a7a20958bfa6f231abccc617f4d8de25c4d.tar.xz | |
[CodeGen] Add MIR function and block attributes
Diffstat (limited to 'backend/lib/CodeGen/MachineMemOperand.cpp')
| -rw-r--r-- | backend/lib/CodeGen/MachineMemOperand.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/backend/lib/CodeGen/MachineMemOperand.cpp b/backend/lib/CodeGen/MachineMemOperand.cpp index 76aabd1..451dbdb 100644 --- a/backend/lib/CodeGen/MachineMemOperand.cpp +++ b/backend/lib/CodeGen/MachineMemOperand.cpp @@ -2,7 +2,6 @@ #include "rcc/CodeGen/MachineMemOperand.h" -#include <bit> #include <utility> namespace rcc { @@ -119,13 +118,6 @@ MemoryAccessFlags::MemoryAccessFlags(std::initializer_list<MemoryAccessFlag> Fla set(Flag); } -Expected<Alignment> Alignment::create(std::uint64_t Bytes) { - if (!std::has_single_bit(Bytes)) { - return makeUnexpected(ErrorCode::InvalidArgument, "alignment must be a nonzero power of two"); - } - return Alignment(Bytes); -} - Expected<MemorySize> MemorySize::fixed(std::uint64_t Bytes) { if (Bytes == 0) return makeUnexpected(ErrorCode::InvalidArgument, "fixed memory size must be nonzero"); |
