class NumericVariableUse

Declaration

class NumericVariableUse : public ExpressionAST { /* full declaration omitted */ };

Description

Class representing the use of a numeric variable in the AST of an expression.

Declared at: llvm/lib/FileCheck/FileCheckImpl.h:328

Inherits from: ExpressionAST

Member Variables

private llvm::NumericVariable* Variable
Pointer to the class instance for the variable this use is about.

Method Overview

  • public NumericVariableUse(llvm::StringRef Name, llvm::NumericVariable * Variable)
  • public Expected<llvm::ExpressionValue> eval() const
  • public Expected<llvm::ExpressionFormat> getImplicitFormat(const llvm::SourceMgr & SM) const

Inherited from ExpressionAST:

Methods

NumericVariableUse(
    llvm::StringRef Name,
    llvm::NumericVariable* Variable)

Declared at: llvm/lib/FileCheck/FileCheckImpl.h:334

Parameters

llvm::StringRef Name
llvm::NumericVariable* Variable

Expected<llvm::ExpressionValue> eval() const

Declared at: llvm/lib/FileCheck/FileCheckImpl.h:337

Returns

the value of the variable referenced by this instance.

Expected<llvm::ExpressionFormat>
getImplicitFormat(const llvm::SourceMgr& SM) const

Declared at: llvm/lib/FileCheck/FileCheckImpl.h:341

Parameters

const llvm::SourceMgr& SM

Returns

implicit format of this numeric variable.