LLVM 20.0.0git
LoongArchTargetStreamer.cpp
Go to the documentation of this file.
1//===-- LoongArchTargetStreamer.cpp - LoongArch Target Streamer Methods ---===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file provides LoongArch specific target streamer methods.
10//
11//===----------------------------------------------------------------------===//
12
14
15using namespace llvm;
16
18 : MCTargetStreamer(S) {}
19
22 "Improperly initialized target ABI");
23 TargetABI = ABI;
24}
25
30
31// This part is for ascii assembly output.
35
37 OS << "\t.option\tpush\n";
38}
39
41 OS << "\t.option\tpop\n";
42}
43
45 OS << "\t.option\trelax\n";
46}
47
49 OS << "\t.option\tnorelax\n";
50}
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
raw_pwrite_stream & OS
LoongArchTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
void setTargetABI(LoongArchABI::ABI ABI)
Streaming machine code generation interface.
Definition: MCStreamer.h:213
Target specific streamer interface.
Definition: MCStreamer.h:94
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18