class ExpressionValue

Declaration

class ExpressionValue { /* full declaration omitted */ };

Description

Class representing a numeric value.

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

Member Variables

private uint64_t Value
private bool Negative

Method Overview

Methods

template <class T>
ExpressionValue(T Val)

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

Templates

T

Parameters

T Val

llvm::ExpressionValue getAbsolute() const

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

Returns

an unsigned ExpressionValue instance whose value is the absolute value to this object's value.

Expected<int64_t> getSignedValue() const

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

Returns

the value as a signed integer or an error if the value is out of range.

Expected<uint64_t> getUnsignedValue() const

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

Returns

the value as an unsigned integer or an error if the value is out of range.

bool isNegative() const

Description

Returns true if value is signed and negative, false otherwise.

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