[CodeGen] Add MVT::FIRST_VALUETYPE to avoid explicit 0. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 7 Jan 2015 18:39:00 +0000 (18:39 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 7 Jan 2015 18:39:00 +0000 (18:39 +0000)
commitc694182380539b93bc153e0e79a141372b4d5dac
tree185c9b54287d7ea0be9ddc7d93479287ee32b7f8
parent60812c05e748e183becba2cfe945fb2621ea1c9f
[CodeGen] Add MVT::FIRST_VALUETYPE to avoid explicit 0. NFC.

Many places reference MVT::LAST_VALUETYPE when iterating over all
valid MVTs, but they usually start with 0.
With FIRST_VALUETYPE, we can avoid explicit constants when we really
should be using MVT::SimpleValueType.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225362 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineValueType.h