Lower a relative reference between two globals to a target MCExpr.
Declared in <llvm/Target/TargetLoweringObjectFile.h>
virtual
MCExpr const*
lowerRelativeReference(
GlobalValue const* LHS,
GlobalValue const* RHS,
int64_t Addend,
std::optional<int64_t> PCRelativeOffset,
TargetMachine const& TM) const;
The lowered MCExpr, or nullptr if unsupported.
| Name | Description |
|---|---|
| LHS | Left-hand global value of the relative reference. |
| RHS | Right-hand global value of the relative reference. |
| Addend | Constant addend applied to the reference. |
| PCRelativeOffset | Optional PC-relative offset, if applicable. |
| TM | Target machine whose relocation conventions apply. |