Home
last modified time | relevance | path

Searched refs:ConstantExpression (Results 1 – 18 of 18) sorted by relevance

/system/tools/hidl/
DConstantExpression.h44 struct ConstantExpression { struct
45 static std::unique_ptr<ConstantExpression> Zero(ScalarType::Kind kind);
46 static std::unique_ptr<ConstantExpression> One(ScalarType::Kind kind);
47 static std::unique_ptr<ConstantExpression> ValueOf(ScalarType::Kind kind, uint64_t value);
49 ConstantExpression(const std::string& expr);
50 virtual ~ConstantExpression() {} in ~ConstantExpression() argument
59 status_t recursivePass(const std::function<status_t(ConstantExpression*)>& func,
60 std::unordered_set<const ConstantExpression*>* visited,
62 status_t recursivePass(const std::function<status_t(const ConstantExpression*)>& func,
63 std::unordered_set<const ConstantExpression*>* visited,
[all …]
DConstantExpression.cpp160 std::unique_ptr<ConstantExpression> ConstantExpression::Zero(ScalarType::Kind kind) { in Zero()
164 std::unique_ptr<ConstantExpression> ConstantExpression::One(ScalarType::Kind kind) { in One()
168 std::unique_ptr<ConstantExpression> ConstantExpression::ValueOf(ScalarType::Kind kind, in ValueOf()
173 ConstantExpression::ConstantExpression(const std::string& expr) : mExpr(expr) {} in ConstantExpression() function in android::ConstantExpression
175 bool ConstantExpression::isEvaluated() const { in isEvaluated()
181 : ConstantExpression(expr) { in LiteralConstantExpression()
353 ConstantExpression* expr = mReference->constExpr(); in evaluate()
393 std::unique_ptr<ConstantExpression> ConstantExpression::addOne(ScalarType::Kind baseKind) { in addOne()
395 this, "+", ConstantExpression::One(baseKind).release()); in addOne()
399 std::string ConstantExpression::value() const { in value()
[all …]
DArrayType.h28 struct ConstantExpression;
31 ArrayType(const Reference<Type>& elementType, ConstantExpression* size, Scope* parent);
38 void appendDimension(ConstantExpression *size);
45 std::vector<const ConstantExpression*> getConstantExpressions() const override;
120 std::vector<ConstantExpression*> mSizes;
DInterface.h39 const static std::unique_ptr<ConstantExpression> FLAG_ONE_WAY;
40 const static std::unique_ptr<ConstantExpression> FLAG_CLEAR_BUF;
162 std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const;
DEnumType.h73 std::vector<const ConstantExpression*> getConstantExpressions() const override;
152 EnumValue(const std::string& name, ConstantExpression* value, const Location& location);
159 ConstantExpression* constExpr() const override;
168 ConstantExpression* mValue;
DScope.h31 struct ConstantExpression;
119 virtual ConstantExpression* constExpr() const;
DAST.cpp145 [](ConstantExpression* ce) { in postParse()
158 const std::function<status_t(ConstantExpression*)>& func, bool processBeforeDependencies) { in constantExpressionRecursivePass()
160 std::unordered_set<const ConstantExpression*> visitedCE; in constantExpressionRecursivePass()
174 const std::function<status_t(const ConstantExpression*)>& func, in constantExpressionRecursivePass()
177 std::unordered_set<const ConstantExpression*> visitedCE; in constantExpressionRecursivePass()
249 std::unordered_set<const ConstantExpression*> visitedCE; in lookupConstantExpressions()
258 [&](ConstantExpression* ce) { in lookupConstantExpressions()
311 [](const ConstantExpression* ce) { return ce->validate(); }, in validateConstantExpressions()
317 [](ConstantExpression* ce) { in evaluateConstantExpressions()
349 std::unordered_set<const ConstantExpression*> visitedCE; in checkAcyclicConstantExpressions()
[all …]
DArrayType.cpp27 ArrayType::ArrayType(const Reference<Type>& elementType, ConstantExpression* size, Scope* parent) in ArrayType()
34 void ArrayType::appendDimension(ConstantExpression *size) { in appendDimension()
67 std::vector<const ConstantExpression*> ArrayType::getConstantExpressions() const { in getConstantExpressions()
68 std::vector<const ConstantExpression*> ret; in getConstantExpressions()
DAST.h36 struct ConstantExpression;
96 const std::function<status_t(ConstantExpression*)>& func, bool processBeforeDependencies);
98 const std::function<status_t(const ConstantExpression*)>& func,
DType.h34 struct ConstantExpression;
74 std::vector<ConstantExpression*> getConstantExpressions();
75 virtual std::vector<const ConstantExpression*> getConstantExpressions() const;
DType.cpp133 std::vector<ConstantExpression*> Type::getConstantExpressions() { in getConstantExpressions()
135 std::vector<ConstantExpression*> ret(constRet.size()); in getConstantExpressions()
137 [](const auto* ce) { return const_cast<ConstantExpression*>(ce); }); in getConstantExpressions()
141 std::vector<const ConstantExpression*> Type::getConstantExpressions() const { in getConstantExpressions()
DMethod.h38 struct ConstantExpression;
DEnumType.cpp91 std::vector<const ConstantExpression*> EnumType::getConstantExpressions() const { in getConstantExpressions()
92 std::vector<const ConstantExpression*> ret; in getConstantExpressions()
794 EnumValue::EnumValue(const std::string& name, ConstantExpression* value, const Location& location) in EnumValue()
815 ConstantExpression *EnumValue::constExpr() const { in constExpr()
828 mValue = ConstantExpression::Zero(type->getKind()).release(); in autofill()
DInterface.cpp43 const std::unique_ptr<ConstantExpression> Interface::FLAG_ONE_WAY =
46 const std::unique_ptr<ConstantExpression> Interface::FLAG_CLEAR_BUF =
272 std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const { in emitDigestChain()
281 out << byteToString(ConstantExpression::ValueOf(ScalarType::Kind::KIND_UINT8, e)); in emitDigestChain()
DAndroid.bp85 "ConstantExpression.cpp",
DScope.cpp297 ConstantExpression* LocalIdentifier::constExpr() const { in constExpr()
Dhidl-gen_l.ll36 #include "ConstantExpression.h"
Dhidl-gen_y.yy23 #include "ConstantExpression.h"
327 android::ConstantExpression *constantExpression;
811 $$ = ConstantExpression::Zero(ScalarType::KIND_INT32).release();