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

Method HandleBitcast

tensorflow/compiler/xla/service/cpu/ir_emitter.cc:226–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224IrEmitter::~IrEmitter() {}
225
226Status IrEmitter::HandleBitcast(HloInstruction* bitcast) {
227 VLOG(2) << "HandleBitcast: " << bitcast->ToString();
228 emitted_value_[bitcast] =
229 BitCast(GetEmittedValueFor(bitcast->operand(0)),
230 IrShapeType(bitcast->shape())->getPointerTo(), IrName(bitcast));
231 return Status::OK();
232}
233
234llvm::Constant* IrEmitter::EmitGlobalForLiteral(const Literal& literal) {
235 llvm::Constant* initializer =

Callers

nothing calls this directly

Calls 5

BitCastFunction · 0.85
IrNameFunction · 0.85
ToStringMethod · 0.45
operandMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected