Introduce OperIs
authorMike Danes <onemihaid@hotmail.com>
Wed, 28 Dec 2016 10:14:21 +0000 (12:14 +0200)
committerMike Danes <onemihaid@hotmail.com>
Tue, 17 Jan 2017 18:26:28 +0000 (20:26 +0200)
commit5ff7b8a928e95d9e41f6bbf1b901f8c88416a961
treea75e439e014cb96e0eba1e3b85e5b63d0dc27b2b
parent2e553eb69a40fdc7223f6971141ddd7f52aa7e60
Introduce OperIs

Checking a GenTree's oper is a common operation so having a shorter way of doing it should be useful, especially when considering the requirement to paranthesize code like x == a || x == b.

Commit migrated from https://github.com/dotnet/coreclr/commit/5352fffd30d3ae0412dbab2008be62346d0610f2
src/coreclr/src/jit/codegenxarch.cpp
src/coreclr/src/jit/gentree.h
src/coreclr/src/jit/lower.cpp
src/coreclr/src/jit/lowerxarch.cpp