Lines Matching refs:ScalarConstant
44 class ScalarConstant; variable
67 virtual ScalarConstant* AsScalarConstant() { return nullptr; } in AsScalarConstant()
78 virtual const ScalarConstant* AsScalarConstant() const { return nullptr; } in AsScalarConstant()
145 class ScalarConstant : public Constant {
147 ScalarConstant() = delete;
148 ScalarConstant* AsScalarConstant() override { return this; } in AsScalarConstant()
149 const ScalarConstant* AsScalarConstant() const override { return this; } in AsScalarConstant()
167 ScalarConstant(const Type* ty, const std::vector<uint32_t>& w) in ScalarConstant() function
169 ScalarConstant(const Type* ty, std::vector<uint32_t>&& w) in ScalarConstant() function
175 class IntConstant : public ScalarConstant {
178 : ScalarConstant(ty, w) {} in IntConstant()
180 : ScalarConstant(ty, std::move(w)) {} in IntConstant()
225 class FloatConstant : public ScalarConstant {
228 : ScalarConstant(ty, w) {} in FloatConstant()
230 : ScalarConstant(ty, std::move(w)) {} in FloatConstant()
266 class BoolConstant : public ScalarConstant {
269 : ScalarConstant(ty, {static_cast<uint32_t>(v)}), value_(v) {} in BoolConstant()