| 657 | } |
| 658 | |
| 659 | bool 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 | |
| 673 | int BfIRConstHolder::CheckConstEquality(BfIRValue lhs, BfIRValue rhs) |
| 674 | { |
no outgoing calls
no test coverage detected