MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / StringRefToView

Function StringRefToView

tensorflow/compiler/mlir/op_or_arg_name_mapper.cc:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#include "mlir/IR/Value.h" // TF:llvm-project
31
32static inline absl::string_view StringRefToView(llvm::StringRef ref) {
33 return absl::string_view(ref.data(), ref.size());
34}
35
36static inline llvm::StringRef StringViewToRef(absl::string_view view) {
37 return llvm::StringRef(view.data(), view.size());

Callers 3

GetUniqueNameMethod · 0.70
GetUniqueNameViewMethod · 0.70
InitOpNameMethod · 0.70

Calls 3

string_viewClass · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected