#include "llvm/Support/Mustache.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <cctype>
#include <optional>
#include <sstream>
Go to the source code of this file.
|
namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations.
|
namespace | llvm::mustache |
|
static AstPtr | llvm::mustache::createRootNode (MustacheContext &Ctx) |
static AstPtr | llvm::mustache::createNode (MustacheContext &Ctx, ASTNode::Type T, Accessor A, ASTNode *Parent) |
static AstPtr | llvm::mustache::createTextNode (MustacheContext &Ctx, std::string Body, ASTNode *Parent) |
static bool | llvm::mustache::hasTextBehind (size_t Idx, const ArrayRef< Token > &Tokens) |
static bool | llvm::mustache::hasTextAhead (size_t Idx, const ArrayRef< Token > &Tokens) |
static bool | llvm::mustache::requiresCleanUp (Token::Type T) |
static void | llvm::mustache::stripTokenAhead (SmallVectorImpl< Token > &Tokens, size_t Idx) |
void | llvm::mustache::stripTokenBefore (SmallVectorImpl< Token > &Tokens, size_t Idx, Token &CurrentToken, Token::Type CurrentType) |
static const char * | llvm::mustache::tagKindToString (Tag::Kind K) |
static const char * | llvm::mustache::jsonKindToString (json::Value::Kind K) |
static Tag | llvm::mustache::findNextTag (StringRef Template, size_t StartPos, StringRef Open, StringRef Close) |
static std::optional< std::pair< StringRef, StringRef > > | llvm::mustache::processTag (const Tag &T, SmallVectorImpl< Token > &Tokens) |
static SmallVector< Token > | llvm::mustache::tokenize (StringRef Template) |
static void | llvm::mustache::toMustacheString (const json::Value &Data, raw_ostream &OS) |
◆ DEBUG_TYPE
#define DEBUG_TYPE "mustache" |