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

Function EmitLogging

tensorflow/compiler/xla/service/llvm_ir/llvm_util.cc:370–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void EmitLogging(const char* tag, llvm::Value* value, llvm::IRBuilder<>* b) {
371 llvm::FunctionType* log_function_type = llvm::FunctionType::get(
372 b->getVoidTy(), {b->getInt64Ty(), b->getInt64Ty()}, /*isVarArg=*/false);
373 b->CreateCall(log_function_type,
374 b->CreateIntToPtr(b->getInt64(absl::bit_cast<int64>(&LogS64)),
375 log_function_type->getPointerTo()),
376 {b->getInt64(absl::bit_cast<int64>(tag)), value});
377}
378
379void SetAlignmentMetadataForLoad(llvm::LoadInst* load, uint64_t alignment) {
380 llvm::LLVMContext& context = load->getContext();

Callers

nothing calls this directly

Calls 2

getFunction · 0.50
CreateCallMethod · 0.45

Tested by

no test coverage detected