mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[Attributor][NFC] Add IntegerState raw_ostream << operator
llvm-svn: 368622
This commit is contained in:
parent
ece8190497
commit
acc8079f8e
@ -871,6 +871,7 @@ raw_ostream &operator<<(raw_ostream &OS, ChangeStatus S);
|
||||
raw_ostream &operator<<(raw_ostream &OS, IRPosition::Kind);
|
||||
raw_ostream &operator<<(raw_ostream &OS, const IRPosition &);
|
||||
raw_ostream &operator<<(raw_ostream &OS, const AbstractState &State);
|
||||
raw_ostream &operator<<(raw_ostream &OS, const IntegerState &S);
|
||||
///}
|
||||
|
||||
struct AttributorPass : public PassInfoMixin<AttributorPass> {
|
||||
|
@ -2498,6 +2498,11 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const IRPosition &Pos) {
|
||||
<< Pos.getAnchorValue().getName() << "@" << Pos.getArgNo() << "]}";
|
||||
}
|
||||
|
||||
raw_ostream &llvm::operator<<(raw_ostream &OS, const IntegerState &S) {
|
||||
return OS << "(" << S.getKnown() << "-" << S.getAssumed() << ")"
|
||||
<< static_cast<const AbstractState &>(S);
|
||||
}
|
||||
|
||||
raw_ostream &llvm::operator<<(raw_ostream &OS, const AbstractState &S) {
|
||||
return OS << (!S.isValidState() ? "top" : (S.isAtFixpoint() ? "fix" : ""));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user