Home
last modified time | relevance | path

Searched refs:ExprValue (Results 1 – 5 of 5) sorted by relevance

/openbsd/gnu/llvm/lld/ELF/
H A DLinkerScript.h38 struct ExprValue { struct
39 ExprValue(SectionBase *sec, bool forceAbsolute, uint64_t val, in ExprValue() function
43 ExprValue(uint64_t val) : ExprValue(nullptr, false, val, "") {} in ExprValue() function
71 using Expr = std::function<ExprValue()>; argument
314 ExprValue getSymbolValue(StringRef name, const Twine &loc);
H A DScriptParser.cpp155 static void moveAbsRight(ExprValue &a, ExprValue &b) { in moveAbsRight()
162 static ExprValue add(ExprValue a, ExprValue b) { in add()
167 static ExprValue sub(ExprValue a, ExprValue b) { in sub()
174 static ExprValue bitAnd(ExprValue a, ExprValue b) { in bitAnd()
180 static ExprValue bitOr(ExprValue a, ExprValue b) { in bitOr()
1078 e = [=, c = op[0]]() -> ExprValue { in readSymbolAssignment()
1079 ExprValue lhs = script->getSymbolValue(name, loc); in readSymbolAssignment()
1376 ExprValue i = inner(); in readPrimary()
1385 return [=]() -> ExprValue { in readPrimary()
1401 ExprValue v = e(); in readPrimary()
H A DLinkerScript.cpp114 uint64_t ExprValue::getValue() const { in getValue()
121 uint64_t ExprValue::getSecAddr() const { in getSecAddr()
125 uint64_t ExprValue::getSectionOffset() const { in getSectionOffset()
220 ExprValue value = cmd->expression(); in addSymbol()
377 ExprValue v = cmd->expression(); in assignSymbol()
1388 ExprValue LinkerScript::getSymbolValue(StringRef name, const Twine &loc) { in getSymbolValue()
1398 ExprValue v{ds->section, false, ds->value, loc}; in getSymbolValue()
/openbsd/gnu/llvm/llvm/lib/MC/MCParser/
H A DAsmParser.cpp5155 int64_t ExprValue; in parseDirectiveIf() local
5156 if (parseAbsoluteExpression(ExprValue) || parseEOL()) in parseDirectiveIf()
5166 ExprValue = ExprValue == 0; in parseDirectiveIf()
5169 ExprValue = ExprValue >= 0; in parseDirectiveIf()
5172 ExprValue = ExprValue > 0; in parseDirectiveIf()
5175 ExprValue = ExprValue <= 0; in parseDirectiveIf()
5178 ExprValue = ExprValue < 0; in parseDirectiveIf()
5182 TheCondState.CondMet = ExprValue; in parseDirectiveIf()
5317 int64_t ExprValue; in parseDirectiveElseIf() local
5318 if (parseAbsoluteExpression(ExprValue)) in parseDirectiveElseIf()
[all …]
H A DMasmParser.cpp6174 int64_t ExprValue; in parseDirectiveIf() local
6175 if (parseAbsoluteExpression(ExprValue) || parseEOL()) in parseDirectiveIf()
6184 ExprValue = ExprValue == 0; in parseDirectiveIf()
6188 TheCondState.CondMet = ExprValue; in parseDirectiveIf()
6311 int64_t ExprValue; in parseDirectiveElseIf() local
6312 if (parseAbsoluteExpression(ExprValue)) in parseDirectiveElseIf()
6324 ExprValue = ExprValue == 0; in parseDirectiveElseIf()
6328 TheCondState.CondMet = ExprValue; in parseDirectiveElseIf()
6661 int64_t ExprValue; in parseDirectiveErrorIfe() local
6662 if (parseAbsoluteExpression(ExprValue)) in parseDirectiveErrorIfe()
[all …]