Add two symbolic relocatable values, folding resolved differences when possible.

Synopsis

Declared in <llvm/MC/MCExpr.h>

static
bool
evaluateSymbolicAdd(
    MCAssembler const* Asm,
    bool InSet,
    MCValue const& LHS,
    MCValue const& RHS,
    MCValue& Res);

Return Value

True on success.

Parameters

Name

Description

Asm

‐ Optional assembler used to resolve symbols and fragments.

InSet

‐ True when evaluating inside a .set / assignment context.

LHS

‐ Left‐hand relocatable value.

RHS

‐ Right‐hand relocatable value.

Res

‐ Filled with the sum on success.

Created with MrDocs