LLVM API Documentation
#include "llvm/CodeGen/AsmPrinter.h"#include "llvm/Assembly/Writer.h"#include "llvm/DerivedTypes.h"#include "llvm/Constants.h"#include "llvm/Module.h"#include "llvm/CodeGen/GCMetadataPrinter.h"#include "llvm/CodeGen/MachineConstantPool.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineJumpTableInfo.h"#include "llvm/CodeGen/MachineLoopInfo.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/DwarfWriter.h"#include "llvm/Analysis/DebugInfo.h"#include "llvm/MC/MCContext.h"#include "llvm/MC/MCInst.h"#include "llvm/MC/MCSection.h"#include "llvm/MC/MCStreamer.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/FormattedStream.h"#include "llvm/Support/Mangler.h"#include "llvm/Target/TargetAsmInfo.h"#include "llvm/Target/TargetData.h"#include "llvm/Target/TargetLowering.h"#include "llvm/Target/TargetLoweringObjectFile.h"#include "llvm/Target/TargetOptions.h"#include "llvm/Target/TargetRegisterInfo.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/StringExtras.h"#include <cerrno>
Go to the source code of this file.
Functions | |
| static char | toOctal (int X) |
| static void | printStringChar (formatted_raw_ostream &O, unsigned char C) |
| static void | printAsCString (formatted_raw_ostream &O, const ConstantArray *CVA, unsigned LastElt) |
| static formatted_raw_ostream & | Indent (formatted_raw_ostream &out, int level, int scale=2) |
| static void | PrintChildLoopComment (formatted_raw_ostream &O, const MachineLoop *loop, const TargetAsmInfo *TAI, int FunctionNumber) |
Variables | |
| static cl::opt< cl::boolOrDefault > | AsmVerbose ("asm-verbose", cl::desc("Add comments to directives."), cl::init(cl::BOU_UNSET)) |
| static formatted_raw_ostream& Indent | ( | formatted_raw_ostream & | out, | |
| int | level, | |||
| int | scale = 2 | |||
| ) | [static] |
Indent - Insert spaces into the character output stream. The "level" is multiplied by the "scale" to calculate the number of spaces to insert. "level" can represent something like loop nesting level, for example.
Definition at line 1793 of file AsmPrinter.cpp.
| static void printAsCString | ( | formatted_raw_ostream & | O, | |
| const ConstantArray * | CVA, | |||
| unsigned | LastElt | |||
| ) | [static] |
printAsCString - Print the specified array as a C compatible string, only if the predicate isString is true.
Definition at line 915 of file AsmPrinter.cpp.
References llvm::CallingConv::C, llvm::Constant::getOperand(), llvm::ConstantArray::isString(), and printStringChar().
Referenced by llvm::AsmPrinter::EmitString().
| static void PrintChildLoopComment | ( | formatted_raw_ostream & | O, | |
| const MachineLoop * | loop, | |||
| const TargetAsmInfo * | TAI, | |||
| int | FunctionNumber | |||
| ) | [static] |
PrintChildLoopComment - Print comments about child loops within the loop for this basic block, with nesting.
Definition at line 1803 of file AsmPrinter.cpp.
References llvm::LoopBase< BlockT, LoopT >::begin(), llvm::LoopBase< BlockT, LoopT >::end(), llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), llvm::MachineBasicBlock::getNumber(), Header, Indent, and llvm::formatted_raw_ostream::PadToColumn().
Referenced by llvm::AsmPrinter::EmitComments().
| static void printStringChar | ( | formatted_raw_ostream & | O, | |
| unsigned char | C | |||
| ) | [static] |
printStringChar - Print a char, escaped if necessary.
Definition at line 677 of file AsmPrinter.cpp.
Referenced by llvm::AsmPrinter::EmitFile(), llvm::AsmPrinter::EmitString(), and printAsCString().
| static char toOctal | ( | int | X | ) | [inline, static] |
toOctal - Convert the low order bits of X into an octal digit.
Definition at line 671 of file AsmPrinter.cpp.
Definition at line 234 of file AsmPrinter.cpp.
Referenced by CopyGVAttributes(), llvm::StringMapEntry< ValueTy >::Create(), llvm::AsmPrinter::EmitConstantPool(), ExpandConstantFP(), ExpandUnalignedLoad(), ExpandUnalignedStore(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ConstantPoolSDNode::getAlignment(), llvm::MachineBasicBlock::getAlignment(), llvm::TargetData::getPreferredAlignment(), operator new(), operator new[](), llvm::MachineBasicBlock::print(), llvm::MachineBasicBlock::setAlignment(), and WriteAttributeTable().
cl::opt<cl::boolOrDefault> AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), cl::init(cl::BOU_UNSET)) [static] |
Referenced by llvm::AsmPrinter::AsmPrinter().
| SmallVector<unsigned, 4> CPEs |
Definition at line 233 of file AsmPrinter.cpp.
Referenced by llvm::GCMetadataPrinter::begin(), BinomialCoefficient(), llvm::DominanceFrontier::calculate(), CloneDominatorInfo(), llvm::PIC16AsmPrinter::doInitialization(), llvm::APInt::dump(), llvm::AsmPrinter::EmitConstantPool(), llvm::AsmPrinter::EmitConstantValueOnly(), llvm::AsmPrinter::EmitGlobalConstant(), llvm::GCMetadataPrinter::end(), llvm::errs(), llvm::ferrs(), llvm::fouts(), llvm::BitstreamCursor::freeState(), llvm::MDString::get(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getAddRecExpr(), llvm::ScalarEvolution::getAllocSizeExpr(), llvm::ISD::ArgFlagsTy::getArgFlagsString(), llvm::ScalarEvolution::getConstant(), llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), llvm::ScalarEvolution::getFieldOffsetExpr(), llvm::JIT::getMemoryForGV(), llvm::GCMetadataPrinter::getModule(), llvm::ScalarEvolution::getMulExpr(), llvm::ScalarEvolution::getSCEV(), llvm::ScalarEvolution::getSignExtendExpr(), llvm::ScalarEvolution::getSMaxExpr(), llvm::GCMetadataPrinter::getStrategy(), llvm::ScalarEvolution::getTruncateExpr(), llvm::ScalarEvolution::getUDivExpr(), llvm::ScalarEvolution::getUMaxExpr(), llvm::ScalarEvolution::getUnknown(), llvm::ScalarEvolution::getZeroExtendExpr(), GroupByComplexity(), llvm::StringPool::intern(), llvm::Link(), llvm::SPUTargetLowering::LowerCall(), llvm::JIT::NotifyFreeingMachineCode(), llvm::JIT::NotifyFunctionEmitted(), llvm::nulls(), llvm::BitstreamCursor::operator=(), llvm::outs(), PrepareCall(), llvm::PointerTracking::print(), llvm::APInt::print(), llvm::PMDataManager::removeNotPreservedAnalysis(), llvm::SplitString(), and llvm::APInt::toString().