MCPcopy Create free account
hub / github.com/beefytech/Beef / IsConstValue

Method IsConstValue

IDEHelper/Compiler/BfIRBuilder.cpp:659–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659bool BfIRConstHolder::IsConstValue(BfIRValue value)
660{
661 auto constant = GetConstant(value);
662 if (constant == NULL)
663 return false;
664
665 if (constant->mConstType == BfConstType_GlobalVar)
666 return false;
667 if (constant->mConstType == BfConstType_Undef)
668 return false;
669
670 return true;
671}
672
673int BfIRConstHolder::CheckConstEquality(BfIRValue lhs, BfIRValue rhs)
674{

Callers 5

VisitMethod · 0.80
CastToValueMethod · 0.80
VisitMethod · 0.80
InjectMixinMethod · 0.80
GetResultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected