[VP] Canonicalize macros of VPIntrinsics.def
authorSimon Moll <simon.moll@emea.nec.com>
Tue, 23 Nov 2021 14:08:02 +0000 (15:08 +0100)
committerSimon Moll <simon.moll@emea.nec.com>
Tue, 23 Nov 2021 15:51:11 +0000 (16:51 +0100)
commit1e65b93f3ac9974672402111cf2e06bf0901dbc9
tree65efb58dc2ff4d0067634c03a9d4bac6a97df20b
parent12887a202404471ddf77f9fae658700573cbebe8
[VP] Canonicalize macros of VPIntrinsics.def

Usage and naming of macros in VPIntrinsics.def has been inconsistent. Rename all property macros to VP_PROPERTY_<name>.  Use BEGIN/END scope macros to attach properties to vp intrinsics and SDNodes (instead of specifying either directly with the property macro).
A follow-up patch has documentation on how the macros are (intended) to be used.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D114144
llvm/include/llvm/IR/VPIntrinsics.def
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/IR/IntrinsicInst.cpp
llvm/unittests/IR/VPIntrinsicTest.cpp