clang
7.0.0
|
#include "clang/Parse/Parser.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Parse/RAIIObjectsForParser.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
Go to the source code of this file.
Functions | |
static bool | buildMSAsmString (Preprocessor &PP, SourceLocation AsmLoc, ArrayRef< Token > AsmToks, SmallVectorImpl< unsigned > &TokOffsets, SmallString< 512 > &Asm) |
Turn a sequence of our tokens back into a string that we can hand to the MC asm parser. More... | |
static bool | isTypeQualifier (const Token &Tok) |
isTypeQualifier - Return true if the current token could be the start of a type-qualifier-list. More... | |
static bool | isGCCAsmStatement (const Token &TokAfterAsm) |
|
static |
Turn a sequence of our tokens back into a string that we can hand to the MC asm parser.
Definition at line 298 of file ParseStmtAsm.cpp.
References clang::Preprocessor::Diag(), clang::Preprocessor::getSpelling(), clang::Token::hasLeadingSpace(), clang::Token::is(), and clang::Token::isAtStartOfLine().
Referenced by isGCCAsmStatement().
Definition at line 375 of file ParseStmtAsm.cpp.
References buildMSAsmString(), clang::Token::clearFlag(), clang::TargetOptions::CPU, Diag(), clang::Error, clang::TargetOptions::Features, clang::SourceManager::getDecomposedExpansionLoc(), clang::SourceManager::getLineNumber(), clang::Token::getLocation(), clang::Token::is(), clang::Token::isAtStartOfLine(), isTypeQualifier(), clang::Token::LeadingSpace, clang::Token::setFlag(), clang::Token::StartOfLine, clang::StmtError(), and MultiVersioning::Target.
isTypeQualifier - Return true if the current token could be the start of a type-qualifier-list.
Definition at line 355 of file ParseStmtAsm.cpp.
References clang::Token::getKind().
Referenced by isGCCAsmStatement().