mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 01:24:35 +00:00
MC/Expr: Add a doxyment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -290,6 +290,20 @@ bool MCExpr::EvaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// \brief Evaluate the result of an add between (conceptually) two MCValues.
|
||||||
|
///
|
||||||
|
/// This routine conceptually attempts to construct an MCValue:
|
||||||
|
/// Result = (Result_A - Result_B + Result_Cst)
|
||||||
|
/// from two MCValue's LHS and RHS where
|
||||||
|
/// Result = LHS + RHS
|
||||||
|
/// and
|
||||||
|
/// Result = (LHS_A - LHS_B + LHS_Cst) + (RHS_A - RHS_B + RHS_Cst).
|
||||||
|
///
|
||||||
|
/// This routine attempts to aggresively fold the operands such that the result
|
||||||
|
/// is representable in an MCValue, but may not always succeed.
|
||||||
|
///
|
||||||
|
/// \returns True on success, false if the result is not representable in an
|
||||||
|
/// MCValue.
|
||||||
static bool EvaluateSymbolicAdd(const MCAssembler *Asm,
|
static bool EvaluateSymbolicAdd(const MCAssembler *Asm,
|
||||||
const MCAsmLayout *Layout,
|
const MCAsmLayout *Layout,
|
||||||
const SectionAddrMap *Addrs,
|
const SectionAddrMap *Addrs,
|
||||||
|
Reference in New Issue
Block a user