MCPcopy Create free account
hub / github.com/google/gapid / IsBlockTerminated

Method IsBlockTerminated

core/codegen/builder.go:323–325  ·  view source on GitHub ↗

IsBlockTerminated returns true if the last instruction is a terminator (unconditional jump). It is illegal to write another instruction after a terminator.

()

Source from the content-addressed store, hash-verified

321// (unconditional jump). It is illegal to write another instruction after a
322// terminator.
323func (b *Builder) IsBlockTerminated() bool {
324 return !b.llvm.GetInsertBlock().LastInstruction().IsATerminatorInst().IsNil()
325}
326
327// FuncAddr returns the pointer to the given function.
328func (b *Builder) FuncAddr(f *Function) *Value {

Callers 5

BuildMethod · 0.95
WhileMethod · 0.95
ForNMethod · 0.95
blockMethod · 0.95
exitMethod · 0.80

Calls 1

IsNilMethod · 0.45

Tested by

no test coverage detected