Home
last modified time | relevance | path

Searched refs:ProtoType (Results 1 – 21 of 21) sorted by relevance

/external/perfetto/tools/ftrace_proto_gen/
Dproto_gen_utils.cc113 ProtoType ProtoType::GetSigned() const { in GetSigned()
125 std::string ProtoType::ToString() const { in ToString()
144 ProtoType ProtoType::String() { in String()
149 ProtoType ProtoType::Invalid() { in Invalid()
154 ProtoType ProtoType::Numeric(uint16_t size, bool is_signed) { in Numeric()
160 ProtoType ProtoType::FromDescriptor( in FromDescriptor()
180 ProtoType GetCommon(ProtoType one, ProtoType other) { in GetCommon()
183 if (one.type == ProtoType::STRING) in GetCommon()
184 return ProtoType::String(); in GetCommon()
191 return ProtoType::Numeric(std::max(one.size, other.size), one.is_signed); in GetCommon()
[all …]
Dproto_gen_utils.h56 struct ProtoType { struct
62 ProtoType GetSigned() const; argument
65 static ProtoType Invalid();
66 static ProtoType String();
67 static ProtoType Numeric(uint16_t size, bool is_signed);
68 static ProtoType FromDescriptor(google::protobuf::FieldDescriptor::Type type);
75 ProtoType type;
91 ProtoType GetCommon(ProtoType one, ProtoType other);
93 ProtoType InferProtoType(const FtraceEvent::Field& field);
Dftrace_descriptor_gen.cc97 ProtoType type = ProtoType::FromDescriptor(field->type()); in GenerateFtraceDescriptors()
Dftrace_proto_gen.cc106 ProtoType type = InferProtoType(field); in GenerateProto()
108 if (type.type == ProtoType::INVALID) in GenerateProto()
/external/tensorflow/tensorflow/core/example/
Dfeature_util.h219 template <typename ProtoType>
220 typename std::enable_if<TypeHasFeatures<ProtoType>::value, Features*>::type
221 GetFeatures(ProtoType* proto);
223 template <typename ProtoType>
224 typename std::enable_if<TypeHasFeatures<ProtoType>::value,
226 GetFeatures(const ProtoType& proto);
236 template <typename FeatureType, typename ProtoType>
238 GetFeatureValues(const string& key, const ProtoType& proto) {
249 template <typename FeatureType, typename ProtoType>
251 const string& key, ProtoType* proto) {
[all …]
/external/tensorflow/tensorflow/stream_executor/tpu/
Dproto_helper.h39 template <class ProtoType, class SerializedProtoType>
40 inline void SerializeProto(const ProtoType& proto, in SerializeProto()
52 template <class ProtoType>
53 inline SerializedProto SerializeProto(const ProtoType& proto) { in SerializeProto()
61 template <class ProtoType, class SerializedProtoType>
62 inline ProtoType DeserializeProto(const SerializedProtoType& serialized_proto) { in DeserializeProto()
63 ProtoType proto; in DeserializeProto()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DNoexceptMoveConstructorCheck.cpp41 const auto *ProtoType = Decl->getType()->getAs<FunctionProtoType>(); in check() local
43 if (isUnresolvedExceptionSpec(ProtoType->getExceptionSpecType())) in check()
46 if (!isNoexceptExceptionSpec(ProtoType->getExceptionSpecType())) { in check()
66 if (ProtoType->canThrow() == CT_Can) { in check()
67 Expr *E = ProtoType->getNoexceptExpr(); in check()
/external/protobuf/src/google/protobuf/
Dtest_util2.h72 template <typename ProtoType>
73 bool EqualsToSerialized(const ProtoType& message, const std::string& data) { in EqualsToSerialized()
74 ProtoType other; in EqualsToSerialized()
/external/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp39 : AV(nullptr), ProtoType(nullptr), ProtoName(), InsertedPHIs(NewPHI) {} in SSAUpdater()
50 ProtoType = Ty; in Initialize()
59 assert(ProtoType && "Need to initialize SSAUpdater"); in AddAvailableValue()
60 assert(ProtoType == V->getType() && in AddAvailableValue()
130 return UndefValue::get(ProtoType); in GetValueInMiddleOfBlock()
150 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
260 return UndefValue::get(Updater->ProtoType); in GetUndefVal()
267 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds, in CreateEmptyPHI()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp58 ProtoType = Ty; in Initialize()
72 assert(ProtoType && "Need to initialize SSAUpdater"); in AddAvailableValue()
73 assert(ProtoType == V->getType() && in AddAvailableValue()
143 return UndefValue::get(ProtoType); in GetValueInMiddleOfBlock()
161 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
273 return UndefValue::get(Updater->ProtoType); in GetUndefVal()
280 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds, in CreateEmptyPHI()
/external/llvm-project/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp58 ProtoType = Ty; in Initialize()
72 assert(ProtoType && "Need to initialize SSAUpdater"); in AddAvailableValue()
73 assert(ProtoType == V->getType() && in AddAvailableValue()
143 return UndefValue::get(ProtoType); in GetValueInMiddleOfBlock()
161 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
268 return UndefValue::get(Updater->ProtoType); in GetUndefVal()
275 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds, in CreateEmptyPHI()
/external/tensorflow/tensorflow/core/platform/
Dlogger.h55 template <typename ProtoType>
56 void LogProto(const ProtoType& proto) { in LogProto()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DSSAUpdater.h47 Type *ProtoType = nullptr; variable
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdater.h48 Type *ProtoType; variable
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DSSAUpdater.h47 Type *ProtoType = nullptr; variable
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp815 if (const auto *ProtoType = Ty->getAs<FunctionProtoType>()) in VisitCXXNewAllocatorCall() local
816 if (!ProtoType->isNothrow()) in VisitCXXNewAllocatorCall()
888 if (const auto *ProtoType = Ty->getAs<FunctionProtoType>()) in VisitCXXNewExpr() local
889 if (!ProtoType->isNothrow()) in VisitCXXNewExpr()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp481 if (const FunctionProtoType *ProtoType = Ty->getAs<FunctionProtoType>()) in VisitCXXNewExpr() local
482 if (!ProtoType->isNothrow(getContext())) in VisitCXXNewExpr()
/external/webrtc/logging/rtc_event_log/encoder/
Drtc_event_log_encoder_new_format.cc317 template <typename EventType, typename ProtoType>
319 ProtoType* proto_batch) { in EncodeRtcpPacket()
368 template <typename EventType, typename ProtoType>
370 ProtoType* proto_batch) { in EncodeRtpPacket()
/external/webrtc/logging/rtc_event_log/
Drtc_event_log_parser.cc338 template <typename ProtoType, typename LoggedType>
340 const ProtoType& proto, in StoreRtpPackets()
607 template <typename ProtoType, typename LoggedType>
609 const ProtoType& proto, in StoreRtcpPackets()
/external/llvm-project/clang/lib/Parse/
DParseObjc.cpp2080 Decl *ProtoType = Actions.ActOnStartProtocolInterface( in ParseObjCAtProtocolDeclaration() local
2084 ParseObjCInterfaceDeclList(tok::objc_protocol, ProtoType); in ParseObjCAtProtocolDeclaration()
2085 return Actions.ConvertDeclToDeclGroup(ProtoType); in ParseObjCAtProtocolDeclaration()
/external/clang/lib/Parse/
DParseObjc.cpp2094 Decl *ProtoType = in ParseObjCAtProtocolDeclaration() local
2101 ParseObjCInterfaceDeclList(tok::objc_protocol, ProtoType); in ParseObjCAtProtocolDeclaration()
2102 return Actions.ConvertDeclToDeclGroup(ProtoType); in ParseObjCAtProtocolDeclaration()