Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/clang/Basic/PPCTypes.def is written in an unsupported language. File is not indexed.

0001 //===-- PPCTypes.def - Metadata about PPC types -----------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 //  This file defines PPC types.
0010 //  Custom code should define one of these macros:
0011 //
0012 //    PPC_VECTOR_TYPE(Name, Id, Size) - A PPC vector type of a given size
0013 //    (in bits).
0014 //
0015 //    PPC_VECTOR_MMA_TYPE(Name, Id, Size) - A PPC MMA vector type of a given
0016 //    size (in bits).
0017 //
0018 //    PPC_VECTOR_VSX_TYPE(Name, Id, Size) - A PPC VSX vector type of a given
0019 //    size (in bits).
0020 //
0021 //===----------------------------------------------------------------------===//
0022 
0023 #if defined(PPC_VECTOR_TYPE)
0024   #define PPC_VECTOR_MMA_TYPE(Name, Id, Size) PPC_VECTOR_TYPE(Name, Id, Size)
0025   #define PPC_VECTOR_VSX_TYPE(Name, Id, Size) PPC_VECTOR_TYPE(Name, Id, Size)
0026 #elif defined(PPC_VECTOR_MMA_TYPE)
0027   #define PPC_VECTOR_VSX_TYPE(Name, Id, Size)
0028 #elif defined(PPC_VECTOR_VSX_TYPE)
0029   #define PPC_VECTOR_MMA_TYPE(Name, Id, Size)
0030 #endif
0031 
0032 
0033 PPC_VECTOR_MMA_TYPE(__vector_quad, VectorQuad, 512)
0034 PPC_VECTOR_VSX_TYPE(__vector_pair, VectorPair, 256)
0035 
0036 #undef PPC_VECTOR_MMA_TYPE
0037 #undef PPC_VECTOR_VSX_TYPE
0038 #undef PPC_VECTOR_TYPE