// Generated by the protocol buffer compiler. DO NOT EDIT! // source: xla/service/cpu/executable.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_xla_2fservice_2fcpu_2fexecutable_2eproto #define GOOGLE_PROTOBUF_INCLUDED_xla_2fservice_2fcpu_2fexecutable_2eproto #include #include #include #if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3021009 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "xla/service/cpu/xla_framework.pb.h" #include "xla/service/hlo.pb.h" #include "xla/xla.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_xla_2fservice_2fcpu_2fexecutable_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_xla_2fservice_2fcpu_2fexecutable_2eproto { static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_xla_2fservice_2fcpu_2fexecutable_2eproto; namespace xla { namespace cpu { class CompilationResultProto; struct CompilationResultProtoDefaultTypeInternal; extern CompilationResultProtoDefaultTypeInternal _CompilationResultProto_default_instance_; class XlaRuntimeCpuExecutableProto; struct XlaRuntimeCpuExecutableProtoDefaultTypeInternal; extern XlaRuntimeCpuExecutableProtoDefaultTypeInternal _XlaRuntimeCpuExecutableProto_default_instance_; } // namespace cpu } // namespace xla PROTOBUF_NAMESPACE_OPEN template<> ::xla::cpu::CompilationResultProto* Arena::CreateMaybeMessage<::xla::cpu::CompilationResultProto>(Arena*); template<> ::xla::cpu::XlaRuntimeCpuExecutableProto* Arena::CreateMaybeMessage<::xla::cpu::XlaRuntimeCpuExecutableProto>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace xla { namespace cpu { // =================================================================== class XlaRuntimeCpuExecutableProto final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:xla.cpu.XlaRuntimeCpuExecutableProto) */ { public: inline XlaRuntimeCpuExecutableProto() : XlaRuntimeCpuExecutableProto(nullptr) {} ~XlaRuntimeCpuExecutableProto() override; explicit PROTOBUF_CONSTEXPR XlaRuntimeCpuExecutableProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); XlaRuntimeCpuExecutableProto(const XlaRuntimeCpuExecutableProto& from); XlaRuntimeCpuExecutableProto(XlaRuntimeCpuExecutableProto&& from) noexcept : XlaRuntimeCpuExecutableProto() { *this = ::std::move(from); } inline XlaRuntimeCpuExecutableProto& operator=(const XlaRuntimeCpuExecutableProto& from) { CopyFrom(from); return *this; } inline XlaRuntimeCpuExecutableProto& operator=(XlaRuntimeCpuExecutableProto&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const XlaRuntimeCpuExecutableProto& default_instance() { return *internal_default_instance(); } static inline const XlaRuntimeCpuExecutableProto* internal_default_instance() { return reinterpret_cast( &_XlaRuntimeCpuExecutableProto_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(XlaRuntimeCpuExecutableProto& a, XlaRuntimeCpuExecutableProto& b) { a.Swap(&b); } inline void Swap(XlaRuntimeCpuExecutableProto* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(XlaRuntimeCpuExecutableProto* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- XlaRuntimeCpuExecutableProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const XlaRuntimeCpuExecutableProto& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom( const XlaRuntimeCpuExecutableProto& from) { XlaRuntimeCpuExecutableProto::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(XlaRuntimeCpuExecutableProto* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "xla.cpu.XlaRuntimeCpuExecutableProto"; } protected: explicit XlaRuntimeCpuExecutableProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kXlaRuntimeExecutableFieldNumber = 1, kXlaFrameworkMappingFieldNumber = 2, }; // optional .xla.XlaRuntimeExecutableProto xla_runtime_executable = 1; bool has_xla_runtime_executable() const; private: bool _internal_has_xla_runtime_executable() const; public: void clear_xla_runtime_executable(); const ::xla::XlaRuntimeExecutableProto& xla_runtime_executable() const; PROTOBUF_NODISCARD ::xla::XlaRuntimeExecutableProto* release_xla_runtime_executable(); ::xla::XlaRuntimeExecutableProto* mutable_xla_runtime_executable(); void set_allocated_xla_runtime_executable(::xla::XlaRuntimeExecutableProto* xla_runtime_executable); private: const ::xla::XlaRuntimeExecutableProto& _internal_xla_runtime_executable() const; ::xla::XlaRuntimeExecutableProto* _internal_mutable_xla_runtime_executable(); public: void unsafe_arena_set_allocated_xla_runtime_executable( ::xla::XlaRuntimeExecutableProto* xla_runtime_executable); ::xla::XlaRuntimeExecutableProto* unsafe_arena_release_xla_runtime_executable(); // optional .xla.cpu.XlaFrameworkMappingProto xla_framework_mapping = 2; bool has_xla_framework_mapping() const; private: bool _internal_has_xla_framework_mapping() const; public: void clear_xla_framework_mapping(); const ::xla::cpu::XlaFrameworkMappingProto& xla_framework_mapping() const; PROTOBUF_NODISCARD ::xla::cpu::XlaFrameworkMappingProto* release_xla_framework_mapping(); ::xla::cpu::XlaFrameworkMappingProto* mutable_xla_framework_mapping(); void set_allocated_xla_framework_mapping(::xla::cpu::XlaFrameworkMappingProto* xla_framework_mapping); private: const ::xla::cpu::XlaFrameworkMappingProto& _internal_xla_framework_mapping() const; ::xla::cpu::XlaFrameworkMappingProto* _internal_mutable_xla_framework_mapping(); public: void unsafe_arena_set_allocated_xla_framework_mapping( ::xla::cpu::XlaFrameworkMappingProto* xla_framework_mapping); ::xla::cpu::XlaFrameworkMappingProto* unsafe_arena_release_xla_framework_mapping(); // @@protoc_insertion_point(class_scope:xla.cpu.XlaRuntimeCpuExecutableProto) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::xla::XlaRuntimeExecutableProto* xla_runtime_executable_; ::xla::cpu::XlaFrameworkMappingProto* xla_framework_mapping_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_xla_2fservice_2fcpu_2fexecutable_2eproto; }; // ------------------------------------------------------------------- class CompilationResultProto final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:xla.cpu.CompilationResultProto) */ { public: inline CompilationResultProto() : CompilationResultProto(nullptr) {} ~CompilationResultProto() override; explicit PROTOBUF_CONSTEXPR CompilationResultProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CompilationResultProto(const CompilationResultProto& from); CompilationResultProto(CompilationResultProto&& from) noexcept : CompilationResultProto() { *this = ::std::move(from); } inline CompilationResultProto& operator=(const CompilationResultProto& from) { CopyFrom(from); return *this; } inline CompilationResultProto& operator=(CompilationResultProto&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const CompilationResultProto& default_instance() { return *internal_default_instance(); } static inline const CompilationResultProto* internal_default_instance() { return reinterpret_cast( &_CompilationResultProto_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(CompilationResultProto& a, CompilationResultProto& b) { a.Swap(&b); } inline void Swap(CompilationResultProto* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(CompilationResultProto* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- CompilationResultProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CompilationResultProto& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom( const CompilationResultProto& from) { CompilationResultProto::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CompilationResultProto* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "xla.cpu.CompilationResultProto"; } protected: explicit CompilationResultProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kEntryFunctionNameFieldNumber = 3, kObjFileFieldNumber = 4, kHloModuleFieldNumber = 1, kBufferAssignmentFieldNumber = 2, }; // string entry_function_name = 3; void clear_entry_function_name(); const std::string& entry_function_name() const; template void set_entry_function_name(ArgT0&& arg0, ArgT... args); std::string* mutable_entry_function_name(); PROTOBUF_NODISCARD std::string* release_entry_function_name(); void set_allocated_entry_function_name(std::string* entry_function_name); private: const std::string& _internal_entry_function_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_entry_function_name(const std::string& value); std::string* _internal_mutable_entry_function_name(); public: // bytes obj_file = 4; void clear_obj_file(); const std::string& obj_file() const; template void set_obj_file(ArgT0&& arg0, ArgT... args); std::string* mutable_obj_file(); PROTOBUF_NODISCARD std::string* release_obj_file(); void set_allocated_obj_file(std::string* obj_file); private: const std::string& _internal_obj_file() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_obj_file(const std::string& value); std::string* _internal_mutable_obj_file(); public: // .xla.HloModuleProtoWithConfig hlo_module = 1; bool has_hlo_module() const; private: bool _internal_has_hlo_module() const; public: void clear_hlo_module(); const ::xla::HloModuleProtoWithConfig& hlo_module() const; PROTOBUF_NODISCARD ::xla::HloModuleProtoWithConfig* release_hlo_module(); ::xla::HloModuleProtoWithConfig* mutable_hlo_module(); void set_allocated_hlo_module(::xla::HloModuleProtoWithConfig* hlo_module); private: const ::xla::HloModuleProtoWithConfig& _internal_hlo_module() const; ::xla::HloModuleProtoWithConfig* _internal_mutable_hlo_module(); public: void unsafe_arena_set_allocated_hlo_module( ::xla::HloModuleProtoWithConfig* hlo_module); ::xla::HloModuleProtoWithConfig* unsafe_arena_release_hlo_module(); // .xla.BufferAssignmentProto buffer_assignment = 2; bool has_buffer_assignment() const; private: bool _internal_has_buffer_assignment() const; public: void clear_buffer_assignment(); const ::xla::BufferAssignmentProto& buffer_assignment() const; PROTOBUF_NODISCARD ::xla::BufferAssignmentProto* release_buffer_assignment(); ::xla::BufferAssignmentProto* mutable_buffer_assignment(); void set_allocated_buffer_assignment(::xla::BufferAssignmentProto* buffer_assignment); private: const ::xla::BufferAssignmentProto& _internal_buffer_assignment() const; ::xla::BufferAssignmentProto* _internal_mutable_buffer_assignment(); public: void unsafe_arena_set_allocated_buffer_assignment( ::xla::BufferAssignmentProto* buffer_assignment); ::xla::BufferAssignmentProto* unsafe_arena_release_buffer_assignment(); // @@protoc_insertion_point(class_scope:xla.cpu.CompilationResultProto) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entry_function_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr obj_file_; ::xla::HloModuleProtoWithConfig* hlo_module_; ::xla::BufferAssignmentProto* buffer_assignment_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_xla_2fservice_2fcpu_2fexecutable_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // XlaRuntimeCpuExecutableProto // optional .xla.XlaRuntimeExecutableProto xla_runtime_executable = 1; inline bool XlaRuntimeCpuExecutableProto::_internal_has_xla_runtime_executable() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || _impl_.xla_runtime_executable_ != nullptr); return value; } inline bool XlaRuntimeCpuExecutableProto::has_xla_runtime_executable() const { return _internal_has_xla_runtime_executable(); } inline const ::xla::XlaRuntimeExecutableProto& XlaRuntimeCpuExecutableProto::_internal_xla_runtime_executable() const { const ::xla::XlaRuntimeExecutableProto* p = _impl_.xla_runtime_executable_; return p != nullptr ? *p : reinterpret_cast( ::xla::_XlaRuntimeExecutableProto_default_instance_); } inline const ::xla::XlaRuntimeExecutableProto& XlaRuntimeCpuExecutableProto::xla_runtime_executable() const { // @@protoc_insertion_point(field_get:xla.cpu.XlaRuntimeCpuExecutableProto.xla_runtime_executable) return _internal_xla_runtime_executable(); } inline void XlaRuntimeCpuExecutableProto::unsafe_arena_set_allocated_xla_runtime_executable( ::xla::XlaRuntimeExecutableProto* xla_runtime_executable) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xla_runtime_executable_); } _impl_.xla_runtime_executable_ = xla_runtime_executable; if (xla_runtime_executable) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.cpu.XlaRuntimeCpuExecutableProto.xla_runtime_executable) } inline ::xla::XlaRuntimeExecutableProto* XlaRuntimeCpuExecutableProto::release_xla_runtime_executable() { _impl_._has_bits_[0] &= ~0x00000001u; ::xla::XlaRuntimeExecutableProto* temp = _impl_.xla_runtime_executable_; _impl_.xla_runtime_executable_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::xla::XlaRuntimeExecutableProto* XlaRuntimeCpuExecutableProto::unsafe_arena_release_xla_runtime_executable() { // @@protoc_insertion_point(field_release:xla.cpu.XlaRuntimeCpuExecutableProto.xla_runtime_executable) _impl_._has_bits_[0] &= ~0x00000001u; ::xla::XlaRuntimeExecutableProto* temp = _impl_.xla_runtime_executable_; _impl_.xla_runtime_executable_ = nullptr; return temp; } inline ::xla::XlaRuntimeExecutableProto* XlaRuntimeCpuExecutableProto::_internal_mutable_xla_runtime_executable() { _impl_._has_bits_[0] |= 0x00000001u; if (_impl_.xla_runtime_executable_ == nullptr) { auto* p = CreateMaybeMessage<::xla::XlaRuntimeExecutableProto>(GetArenaForAllocation()); _impl_.xla_runtime_executable_ = p; } return _impl_.xla_runtime_executable_; } inline ::xla::XlaRuntimeExecutableProto* XlaRuntimeCpuExecutableProto::mutable_xla_runtime_executable() { ::xla::XlaRuntimeExecutableProto* _msg = _internal_mutable_xla_runtime_executable(); // @@protoc_insertion_point(field_mutable:xla.cpu.XlaRuntimeCpuExecutableProto.xla_runtime_executable) return _msg; } inline void XlaRuntimeCpuExecutableProto::set_allocated_xla_runtime_executable(::xla::XlaRuntimeExecutableProto* xla_runtime_executable) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xla_runtime_executable_); } if (xla_runtime_executable) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(xla_runtime_executable)); if (message_arena != submessage_arena) { xla_runtime_executable = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, xla_runtime_executable, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.xla_runtime_executable_ = xla_runtime_executable; // @@protoc_insertion_point(field_set_allocated:xla.cpu.XlaRuntimeCpuExecutableProto.xla_runtime_executable) } // optional .xla.cpu.XlaFrameworkMappingProto xla_framework_mapping = 2; inline bool XlaRuntimeCpuExecutableProto::_internal_has_xla_framework_mapping() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.xla_framework_mapping_ != nullptr); return value; } inline bool XlaRuntimeCpuExecutableProto::has_xla_framework_mapping() const { return _internal_has_xla_framework_mapping(); } inline const ::xla::cpu::XlaFrameworkMappingProto& XlaRuntimeCpuExecutableProto::_internal_xla_framework_mapping() const { const ::xla::cpu::XlaFrameworkMappingProto* p = _impl_.xla_framework_mapping_; return p != nullptr ? *p : reinterpret_cast( ::xla::cpu::_XlaFrameworkMappingProto_default_instance_); } inline const ::xla::cpu::XlaFrameworkMappingProto& XlaRuntimeCpuExecutableProto::xla_framework_mapping() const { // @@protoc_insertion_point(field_get:xla.cpu.XlaRuntimeCpuExecutableProto.xla_framework_mapping) return _internal_xla_framework_mapping(); } inline void XlaRuntimeCpuExecutableProto::unsafe_arena_set_allocated_xla_framework_mapping( ::xla::cpu::XlaFrameworkMappingProto* xla_framework_mapping) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xla_framework_mapping_); } _impl_.xla_framework_mapping_ = xla_framework_mapping; if (xla_framework_mapping) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.cpu.XlaRuntimeCpuExecutableProto.xla_framework_mapping) } inline ::xla::cpu::XlaFrameworkMappingProto* XlaRuntimeCpuExecutableProto::release_xla_framework_mapping() { _impl_._has_bits_[0] &= ~0x00000002u; ::xla::cpu::XlaFrameworkMappingProto* temp = _impl_.xla_framework_mapping_; _impl_.xla_framework_mapping_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::xla::cpu::XlaFrameworkMappingProto* XlaRuntimeCpuExecutableProto::unsafe_arena_release_xla_framework_mapping() { // @@protoc_insertion_point(field_release:xla.cpu.XlaRuntimeCpuExecutableProto.xla_framework_mapping) _impl_._has_bits_[0] &= ~0x00000002u; ::xla::cpu::XlaFrameworkMappingProto* temp = _impl_.xla_framework_mapping_; _impl_.xla_framework_mapping_ = nullptr; return temp; } inline ::xla::cpu::XlaFrameworkMappingProto* XlaRuntimeCpuExecutableProto::_internal_mutable_xla_framework_mapping() { _impl_._has_bits_[0] |= 0x00000002u; if (_impl_.xla_framework_mapping_ == nullptr) { auto* p = CreateMaybeMessage<::xla::cpu::XlaFrameworkMappingProto>(GetArenaForAllocation()); _impl_.xla_framework_mapping_ = p; } return _impl_.xla_framework_mapping_; } inline ::xla::cpu::XlaFrameworkMappingProto* XlaRuntimeCpuExecutableProto::mutable_xla_framework_mapping() { ::xla::cpu::XlaFrameworkMappingProto* _msg = _internal_mutable_xla_framework_mapping(); // @@protoc_insertion_point(field_mutable:xla.cpu.XlaRuntimeCpuExecutableProto.xla_framework_mapping) return _msg; } inline void XlaRuntimeCpuExecutableProto::set_allocated_xla_framework_mapping(::xla::cpu::XlaFrameworkMappingProto* xla_framework_mapping) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xla_framework_mapping_); } if (xla_framework_mapping) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(xla_framework_mapping)); if (message_arena != submessage_arena) { xla_framework_mapping = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, xla_framework_mapping, submessage_arena); } _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.xla_framework_mapping_ = xla_framework_mapping; // @@protoc_insertion_point(field_set_allocated:xla.cpu.XlaRuntimeCpuExecutableProto.xla_framework_mapping) } // ------------------------------------------------------------------- // CompilationResultProto // .xla.HloModuleProtoWithConfig hlo_module = 1; inline bool CompilationResultProto::_internal_has_hlo_module() const { return this != internal_default_instance() && _impl_.hlo_module_ != nullptr; } inline bool CompilationResultProto::has_hlo_module() const { return _internal_has_hlo_module(); } inline const ::xla::HloModuleProtoWithConfig& CompilationResultProto::_internal_hlo_module() const { const ::xla::HloModuleProtoWithConfig* p = _impl_.hlo_module_; return p != nullptr ? *p : reinterpret_cast( ::xla::_HloModuleProtoWithConfig_default_instance_); } inline const ::xla::HloModuleProtoWithConfig& CompilationResultProto::hlo_module() const { // @@protoc_insertion_point(field_get:xla.cpu.CompilationResultProto.hlo_module) return _internal_hlo_module(); } inline void CompilationResultProto::unsafe_arena_set_allocated_hlo_module( ::xla::HloModuleProtoWithConfig* hlo_module) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.hlo_module_); } _impl_.hlo_module_ = hlo_module; if (hlo_module) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.cpu.CompilationResultProto.hlo_module) } inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::release_hlo_module() { ::xla::HloModuleProtoWithConfig* temp = _impl_.hlo_module_; _impl_.hlo_module_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::unsafe_arena_release_hlo_module() { // @@protoc_insertion_point(field_release:xla.cpu.CompilationResultProto.hlo_module) ::xla::HloModuleProtoWithConfig* temp = _impl_.hlo_module_; _impl_.hlo_module_ = nullptr; return temp; } inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::_internal_mutable_hlo_module() { if (_impl_.hlo_module_ == nullptr) { auto* p = CreateMaybeMessage<::xla::HloModuleProtoWithConfig>(GetArenaForAllocation()); _impl_.hlo_module_ = p; } return _impl_.hlo_module_; } inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::mutable_hlo_module() { ::xla::HloModuleProtoWithConfig* _msg = _internal_mutable_hlo_module(); // @@protoc_insertion_point(field_mutable:xla.cpu.CompilationResultProto.hlo_module) return _msg; } inline void CompilationResultProto::set_allocated_hlo_module(::xla::HloModuleProtoWithConfig* hlo_module) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.hlo_module_); } if (hlo_module) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(hlo_module)); if (message_arena != submessage_arena) { hlo_module = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, hlo_module, submessage_arena); } } else { } _impl_.hlo_module_ = hlo_module; // @@protoc_insertion_point(field_set_allocated:xla.cpu.CompilationResultProto.hlo_module) } // .xla.BufferAssignmentProto buffer_assignment = 2; inline bool CompilationResultProto::_internal_has_buffer_assignment() const { return this != internal_default_instance() && _impl_.buffer_assignment_ != nullptr; } inline bool CompilationResultProto::has_buffer_assignment() const { return _internal_has_buffer_assignment(); } inline const ::xla::BufferAssignmentProto& CompilationResultProto::_internal_buffer_assignment() const { const ::xla::BufferAssignmentProto* p = _impl_.buffer_assignment_; return p != nullptr ? *p : reinterpret_cast( ::xla::_BufferAssignmentProto_default_instance_); } inline const ::xla::BufferAssignmentProto& CompilationResultProto::buffer_assignment() const { // @@protoc_insertion_point(field_get:xla.cpu.CompilationResultProto.buffer_assignment) return _internal_buffer_assignment(); } inline void CompilationResultProto::unsafe_arena_set_allocated_buffer_assignment( ::xla::BufferAssignmentProto* buffer_assignment) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.buffer_assignment_); } _impl_.buffer_assignment_ = buffer_assignment; if (buffer_assignment) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.cpu.CompilationResultProto.buffer_assignment) } inline ::xla::BufferAssignmentProto* CompilationResultProto::release_buffer_assignment() { ::xla::BufferAssignmentProto* temp = _impl_.buffer_assignment_; _impl_.buffer_assignment_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::xla::BufferAssignmentProto* CompilationResultProto::unsafe_arena_release_buffer_assignment() { // @@protoc_insertion_point(field_release:xla.cpu.CompilationResultProto.buffer_assignment) ::xla::BufferAssignmentProto* temp = _impl_.buffer_assignment_; _impl_.buffer_assignment_ = nullptr; return temp; } inline ::xla::BufferAssignmentProto* CompilationResultProto::_internal_mutable_buffer_assignment() { if (_impl_.buffer_assignment_ == nullptr) { auto* p = CreateMaybeMessage<::xla::BufferAssignmentProto>(GetArenaForAllocation()); _impl_.buffer_assignment_ = p; } return _impl_.buffer_assignment_; } inline ::xla::BufferAssignmentProto* CompilationResultProto::mutable_buffer_assignment() { ::xla::BufferAssignmentProto* _msg = _internal_mutable_buffer_assignment(); // @@protoc_insertion_point(field_mutable:xla.cpu.CompilationResultProto.buffer_assignment) return _msg; } inline void CompilationResultProto::set_allocated_buffer_assignment(::xla::BufferAssignmentProto* buffer_assignment) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.buffer_assignment_); } if (buffer_assignment) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(buffer_assignment)); if (message_arena != submessage_arena) { buffer_assignment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, buffer_assignment, submessage_arena); } } else { } _impl_.buffer_assignment_ = buffer_assignment; // @@protoc_insertion_point(field_set_allocated:xla.cpu.CompilationResultProto.buffer_assignment) } // string entry_function_name = 3; inline void CompilationResultProto::clear_entry_function_name() { _impl_.entry_function_name_.ClearToEmpty(); } inline const std::string& CompilationResultProto::entry_function_name() const { // @@protoc_insertion_point(field_get:xla.cpu.CompilationResultProto.entry_function_name) return _internal_entry_function_name(); } template inline PROTOBUF_ALWAYS_INLINE void CompilationResultProto::set_entry_function_name(ArgT0&& arg0, ArgT... args) { _impl_.entry_function_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:xla.cpu.CompilationResultProto.entry_function_name) } inline std::string* CompilationResultProto::mutable_entry_function_name() { std::string* _s = _internal_mutable_entry_function_name(); // @@protoc_insertion_point(field_mutable:xla.cpu.CompilationResultProto.entry_function_name) return _s; } inline const std::string& CompilationResultProto::_internal_entry_function_name() const { return _impl_.entry_function_name_.Get(); } inline void CompilationResultProto::_internal_set_entry_function_name(const std::string& value) { _impl_.entry_function_name_.Set(value, GetArenaForAllocation()); } inline std::string* CompilationResultProto::_internal_mutable_entry_function_name() { return _impl_.entry_function_name_.Mutable(GetArenaForAllocation()); } inline std::string* CompilationResultProto::release_entry_function_name() { // @@protoc_insertion_point(field_release:xla.cpu.CompilationResultProto.entry_function_name) return _impl_.entry_function_name_.Release(); } inline void CompilationResultProto::set_allocated_entry_function_name(std::string* entry_function_name) { if (entry_function_name != nullptr) { } else { } _impl_.entry_function_name_.SetAllocated(entry_function_name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.entry_function_name_.IsDefault()) { _impl_.entry_function_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:xla.cpu.CompilationResultProto.entry_function_name) } // bytes obj_file = 4; inline void CompilationResultProto::clear_obj_file() { _impl_.obj_file_.ClearToEmpty(); } inline const std::string& CompilationResultProto::obj_file() const { // @@protoc_insertion_point(field_get:xla.cpu.CompilationResultProto.obj_file) return _internal_obj_file(); } template inline PROTOBUF_ALWAYS_INLINE void CompilationResultProto::set_obj_file(ArgT0&& arg0, ArgT... args) { _impl_.obj_file_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:xla.cpu.CompilationResultProto.obj_file) } inline std::string* CompilationResultProto::mutable_obj_file() { std::string* _s = _internal_mutable_obj_file(); // @@protoc_insertion_point(field_mutable:xla.cpu.CompilationResultProto.obj_file) return _s; } inline const std::string& CompilationResultProto::_internal_obj_file() const { return _impl_.obj_file_.Get(); } inline void CompilationResultProto::_internal_set_obj_file(const std::string& value) { _impl_.obj_file_.Set(value, GetArenaForAllocation()); } inline std::string* CompilationResultProto::_internal_mutable_obj_file() { return _impl_.obj_file_.Mutable(GetArenaForAllocation()); } inline std::string* CompilationResultProto::release_obj_file() { // @@protoc_insertion_point(field_release:xla.cpu.CompilationResultProto.obj_file) return _impl_.obj_file_.Release(); } inline void CompilationResultProto::set_allocated_obj_file(std::string* obj_file) { if (obj_file != nullptr) { } else { } _impl_.obj_file_.SetAllocated(obj_file, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.obj_file_.IsDefault()) { _impl_.obj_file_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:xla.cpu.CompilationResultProto.obj_file) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace cpu } // namespace xla // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_xla_2fservice_2fcpu_2fexecutable_2eproto