diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 03:22:55 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 03:22:55 +0800 |
| commit | 59f948dbb4fcbbb2456db92a55d307cdfbfd8307 (patch) | |
| tree | daf0517cf840091eb92bed0096c5b3ee110c29d7 /backend/lib/MIR/MIRDocumentPrinter.cpp | |
| parent | 888e9b5bb57a79f4eee88a7926cb859e04823361 (diff) | |
| download | rcc-project-59f948dbb4fcbbb2456db92a55d307cdfbfd8307.tar.gz rcc-project-59f948dbb4fcbbb2456db92a55d307cdfbfd8307.tar.xz | |
[MIR] Remove alternate layout and float APIs
Diffstat (limited to 'backend/lib/MIR/MIRDocumentPrinter.cpp')
| -rw-r--r-- | backend/lib/MIR/MIRDocumentPrinter.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/backend/lib/MIR/MIRDocumentPrinter.cpp b/backend/lib/MIR/MIRDocumentPrinter.cpp index 5cc0173..06998bb 100644 --- a/backend/lib/MIR/MIRDocumentPrinter.cpp +++ b/backend/lib/MIR/MIRDocumentPrinter.cpp @@ -387,9 +387,6 @@ MIRDocumentPrinter::verifyOmittedEmbeddedIRLayout(const MachineFunction &Functio const EmbeddedIRReferenceIndex *Embedded = Document.embeddedIR(); if (Embedded == nullptr) return {}; - const auto EmbeddedDataLayout = Embedded->dataLayout(); - if (!EmbeddedDataLayout) - return {}; bool HasLayoutDependentContent = false; for (const VirtualRegisterInfo &RegisterInfo : Function.registerInfo().virtualRegisters()) { @@ -412,14 +409,14 @@ MIRDocumentPrinter::verifyOmittedEmbeddedIRLayout(const MachineFunction &Functio if (!HasLayoutDependentContent) return {}; - if (Options.DataLayout != *EmbeddedDataLayout) { + if (Options.DataLayout.empty()) { return makeUnexpected( ErrorCode::InvalidArgument, - "omitting embedded LLVM IR requires printer DataLayout to exactly match its data layout"); + "omitting embedded LLVM IR with layout-dependent MIR requires an explicit printer " + "DataLayout"); } const LLVMConstantSyntaxOptions LayoutOptions{ - .DefaultPointerSizeInBits = Options.DefaultPointerSizeInBits, .DataLayout = Options.DataLayout, .NamedTypes = {}, }; |
