MCPcopy Create free account
hub / github.com/StanfordPL/x64asm / required_flags

Method required_flags

src/code.h:44–50  ·  view source on GitHub ↗

Returns the set of cpu flags required to run this code. */

Source from the content-addressed store, hash-verified

42
43 /** Returns the set of cpu flags required to run this code. */
44 FlagSet required_flags() const {
45 auto fs = FlagSet::empty();
46 for (const auto& instr : *this) {
47 fs |= instr.required_flags();
48 }
49 return fs;
50 }
51
52 /** Returns the set of registers this code must read. */
53 RegSet must_read_set() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected