LLVM: lib/MC/MCAsmMacro.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

11

12using namespace llvm;

13

14#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

16 OS << "\"" << Name << "\"";

18 OS << ":req";

20 OS << ":vararg";

21 if (Value.empty()) {

22 OS << " = ";

23 bool first = true;

25 if (!first)

26 OS << ", ";

27 first = false;

28 OS << T.getString();

29 }

30 }

31 OS << "\n";

32}

33

35 OS << "Macro " << Name << ":\n";

36 OS << " Parameters:\n";

38 OS << " ";

39 P.dump();

40 }

41 if (Locals.empty()) {

42 OS << " Locals:\n";

44 OS << " " << L << '\n';

45 }

46 OS << " (BEGIN BODY)" << Body << "(END BODY)\n";

47}

48#endif

Target independent representation for an assembler token.

StringRef - Represent a constant reference to a string, i.e.

This class implements an extremely fast bulk output stream that can only output to a stream.

This is an optimization pass for GlobalISel generic memory operations.

std::vector< AsmToken > Value

std::vector< std::string > Locals

MCAsmMacroParameters Parameters