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;
DEnumType.h73 std::vector<const ConstantExpression*> getConstantExpressions() const override;
150 EnumValue(const std::string& name, ConstantExpression* value, const Location& location);
157 ConstantExpression* constExpr() const override;
166 ConstantExpression* mValue;
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 …]
DScope.h31 struct ConstantExpression;
116 virtual ConstantExpression* constExpr() const;
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()
DInterface.h39 const static std::unique_ptr<ConstantExpression> FLAG_ONE_WAY;
159 std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const;
DType.h34 struct ConstantExpression;
74 std::vector<ConstantExpression*> getConstantExpressions();
75 virtual std::vector<const ConstantExpression*> getConstantExpressions() const;
DAST.h36 struct ConstantExpression;
96 const std::function<status_t(ConstantExpression*)>& func, bool processBeforeDependencies);
98 const std::function<status_t(const ConstantExpression*)>& func,
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()
DEnumType.cpp91 std::vector<const ConstantExpression*> EnumType::getConstantExpressions() const { in getConstantExpressions()
92 std::vector<const ConstantExpression*> ret; in getConstantExpressions()
778 EnumValue::EnumValue(const std::string& name, ConstantExpression* value, const Location& location) in EnumValue()
799 ConstantExpression *EnumValue::constExpr() const { in constExpr()
812 mValue = ConstantExpression::Zero(type->getKind()).release(); in autofill()
DMethod.h38 struct ConstantExpression;
DInterface.cpp43 const std::unique_ptr<ConstantExpression> Interface::FLAG_ONE_WAY =
268 std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const { in emitDigestChain()
277 out << byteToString(ConstantExpression::ValueOf(ScalarType::Kind::KIND_UINT8, e)); in emitDigestChain()
DAndroid.bp68 "ConstantExpression.cpp",
DScope.cpp281 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();