[llvm] r183841 - Add artificial PRED_BAD to PPC::Predicate enumeration.
Matt Beaumont-Gay
matthewbg at google.com
Wed Jun 12 11:51:50 PDT 2013
Hi Bill,
lib/Target/PowerPC/MCTargetDesc/PPCPredicates.cpp:20:11: error:
enumeration value 'PRED_BAD' not handled in switch [-Werror,-Wswitch]
switch (Opcode) {
^
lib/Target/PowerPC/MCTargetDesc/PPCPredicates.cpp:34:11: error:
enumeration value 'PRED_BAD' not handled in switch [-Werror,-Wswitch]
switch (Opcode) {
^
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp:92:13: error:
enumeration value 'PRED_BAD' not handled in switch [-Werror,-Wswitch]
switch ((PPC::Predicate)Code) {
^
On Wed, Jun 12, 2013 at 8:14 AM, Bill Schmidt
<wschmidt at linux.vnet.ibm.com> wrote:
> Author: wschmidt
> Date: Wed Jun 12 10:14:42 2013
> New Revision: 183841
>
> URL: http://llvm.org/viewvc/llvm-project?rev=183841&view=rev
> Log:
> Add artificial PRED_BAD to PPC::Predicate enumeration.
>
> Allows returning a PPC::Predicate from a function with a no-predicate
> value possible. Preparatory patch for fast-isel on PPC64 ELF. No
> behavioral change intended.
>
> Modified:
> llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
>
> Modified: llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h?rev=183841&r1=183840&r2=183841&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h (original)
> +++ llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h Wed Jun 12 10:14:42 2013
> @@ -32,7 +32,8 @@ namespace PPC {
> PRED_GT = (1 << 5) | 12,
> PRED_NE = (2 << 5) | 4,
> PRED_UN = (3 << 5) | 12,
> - PRED_NU = (3 << 5) | 4
> + PRED_NU = (3 << 5) | 4,
> + PRED_BAD = 0
> };
>
> /// Invert the specified predicate. != -> ==, < -> >=.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list