[ARM] Add support for MVE pre and post inc loads and stores
[llvm-core.git] / lib / MC / MCAsmMacro.cpp
blobba4fb7d4f387852e67721da4eb485fd0e23bb034
1 //===- MCAsmMacro.h - Assembly Macros ---------------------------*- C++ -*-===//
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 //===----------------------------------------------------------------------===//
9 #include "llvm/MC/MCAsmMacro.h"
10 #include "llvm/Support/raw_ostream.h"
12 using namespace llvm;
14 void MCAsmMacroParameter::dump(raw_ostream &OS) const {
15 OS << "\"" << Name << "\"";
16 if (Required)
17 OS << ":req";
18 if (Vararg)
19 OS << ":vararg";
20 if (!Value.empty()) {
21 OS << " = ";
22 bool first = true;
23 for (const AsmToken &T : Value) {
24 if (!first)
25 OS << ", ";
26 first = false;
27 OS << T.getString();
30 OS << "\n";
33 void MCAsmMacro::dump(raw_ostream &OS) const {
34 OS << "Macro " << Name << ":\n";
35 OS << " Parameters:\n";
36 for (const MCAsmMacroParameter &P : Parameters) {
37 OS << " ";
38 P.dump();
40 OS << " (BEGIN BODY)" << Body << "(END BODY)\n";