Searched refs:ConstantExpression (Results 1 – 18 of 18) sorted by relevance
/system/tools/hidl/ |
D | ConstantExpression.h | 44 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 …]
|
D | ConstantExpression.cpp | 160 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 …]
|
D | ArrayType.h | 28 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;
|
D | EnumType.h | 73 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;
|
D | AST.cpp | 145 [](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 …]
|
D | Scope.h | 31 struct ConstantExpression; 116 virtual ConstantExpression* constExpr() const;
|
D | ArrayType.cpp | 27 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()
|
D | Interface.h | 39 const static std::unique_ptr<ConstantExpression> FLAG_ONE_WAY; 159 std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const;
|
D | Type.h | 34 struct ConstantExpression; 74 std::vector<ConstantExpression*> getConstantExpressions(); 75 virtual std::vector<const ConstantExpression*> getConstantExpressions() const;
|
D | AST.h | 36 struct ConstantExpression; 96 const std::function<status_t(ConstantExpression*)>& func, bool processBeforeDependencies); 98 const std::function<status_t(const ConstantExpression*)>& func,
|
D | Type.cpp | 133 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()
|
D | EnumType.cpp | 91 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()
|
D | Method.h | 38 struct ConstantExpression;
|
D | Interface.cpp | 43 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()
|
D | Android.bp | 68 "ConstantExpression.cpp",
|
D | Scope.cpp | 281 ConstantExpression* LocalIdentifier::constExpr() const { in constExpr()
|
D | hidl-gen_l.ll | 36 #include "ConstantExpression.h"
|
D | hidl-gen_y.yy | 23 #include "ConstantExpression.h" 327 android::ConstantExpression *constantExpression; 811 $$ = ConstantExpression::Zero(ScalarType::KIND_INT32).release();
|