| Index: src/IceInst.cpp
|
| diff --git a/src/IceInst.cpp b/src/IceInst.cpp
|
| index 004b5550baab037ed52cfab41cad584766990a34..6d44e9c5cc076b6868b0d6b0f531a4cc134282d6 100644
|
| --- a/src/IceInst.cpp
|
| +++ b/src/IceInst.cpp
|
| @@ -228,6 +228,12 @@ InstArithmetic::InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest,
|
| addSource(Source2);
|
| }
|
|
|
| +const char *InstArithmetic::getOpName(OpKind Op) {
|
| + size_t OpIndex = static_cast<size_t>(Op);
|
| + return OpIndex < InstArithmeticAttributesSize
|
| + ? InstArithmeticAttributes[OpIndex].DisplayString : "???";
|
| +}
|
| +
|
| bool InstArithmetic::isCommutative() const {
|
| return InstArithmeticAttributes[getOp()].IsCommutative;
|
| }
|
|
|