MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / IsInlineConstant

Method IsInlineConstant

FEXCore/Source/Interface/Core/JIT/JIT.cpp:702–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700Arm64JITCore::~Arm64JITCore() {}
701
702bool Arm64JITCore::IsInlineConstant(const IR::OrderedNodeWrapper& WNode, uint64_t* Value) const {
703 if (WNode.IsImmediate()) {
704 return false;
705 }
706
707 auto OpHeader = IR->GetOp<IR::IROp_Header>(WNode);
708
709 if (OpHeader->Op == IR::IROps::OP_INLINECONSTANT) {
710 auto Op = OpHeader->C<IR::IROp_InlineConstant>();
711 if (Value) {
712 *Value = Op->Constant;
713 }
714 return true;
715 } else {
716 return false;
717 }
718}
719
720bool Arm64JITCore::IsInlineEntrypointOffset(const IR::OrderedNodeWrapper& WNode, uint64_t* Value) const {
721 if (WNode.IsImmediate()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected