-- | Module to allow importing 'COMDAT.SelectionKind' distinctly qualified.
module LLVM.AST.COMDAT where

import LLVM.Prelude

-- | <http://llvm.org/docs/LangRef.html#comdats>
data SelectionKind
  = Any
  | ExactMatch
  | Largest
  | NoDuplicates
  | SameSize
  deriving (SelectionKind -> SelectionKind -> Bool
(SelectionKind -> SelectionKind -> Bool)
-> (SelectionKind -> SelectionKind -> Bool) -> Eq SelectionKind
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SelectionKind -> SelectionKind -> Bool
$c/= :: SelectionKind -> SelectionKind -> Bool
== :: SelectionKind -> SelectionKind -> Bool
$c== :: SelectionKind -> SelectionKind -> Bool
Eq, ReadPrec [SelectionKind]
ReadPrec SelectionKind
Int -> ReadS SelectionKind
ReadS [SelectionKind]
(Int -> ReadS SelectionKind)
-> ReadS [SelectionKind]
-> ReadPrec SelectionKind
-> ReadPrec [SelectionKind]
-> Read SelectionKind
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SelectionKind]
$creadListPrec :: ReadPrec [SelectionKind]
readPrec :: ReadPrec SelectionKind
$creadPrec :: ReadPrec SelectionKind
readList :: ReadS [SelectionKind]
$creadList :: ReadS [SelectionKind]
readsPrec :: Int -> ReadS SelectionKind
$creadsPrec :: Int -> ReadS SelectionKind
Read, Int -> SelectionKind -> ShowS
[SelectionKind] -> ShowS
SelectionKind -> String
(Int -> SelectionKind -> ShowS)
-> (SelectionKind -> String)
-> ([SelectionKind] -> ShowS)
-> Show SelectionKind
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SelectionKind] -> ShowS
$cshowList :: [SelectionKind] -> ShowS
show :: SelectionKind -> String
$cshow :: SelectionKind -> String
showsPrec :: Int -> SelectionKind -> ShowS
$cshowsPrec :: Int -> SelectionKind -> ShowS
Show, Typeable, Typeable SelectionKind
DataType
Constr
Typeable SelectionKind =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> SelectionKind -> c SelectionKind)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c SelectionKind)
-> (SelectionKind -> Constr)
-> (SelectionKind -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c SelectionKind))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c SelectionKind))
-> ((forall b. Data b => b -> b) -> SelectionKind -> SelectionKind)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> SelectionKind -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> SelectionKind -> r)
-> (forall u. (forall d. Data d => d -> u) -> SelectionKind -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> SelectionKind -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind)
-> Data SelectionKind
SelectionKind -> DataType
SelectionKind -> Constr
(forall b. Data b => b -> b) -> SelectionKind -> SelectionKind
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SelectionKind -> c SelectionKind
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SelectionKind
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> SelectionKind -> u
forall u. (forall d. Data d => d -> u) -> SelectionKind -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> SelectionKind -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> SelectionKind -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SelectionKind
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SelectionKind -> c SelectionKind
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c SelectionKind)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SelectionKind)
$cSameSize :: Constr
$cNoDuplicates :: Constr
$cLargest :: Constr
$cExactMatch :: Constr
$cAny :: Constr
$tSelectionKind :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
gmapMp :: (forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
gmapM :: (forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> SelectionKind -> m SelectionKind
gmapQi :: Int -> (forall d. Data d => d -> u) -> SelectionKind -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> SelectionKind -> u
gmapQ :: (forall d. Data d => d -> u) -> SelectionKind -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> SelectionKind -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> SelectionKind -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> SelectionKind -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> SelectionKind -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> SelectionKind -> r
gmapT :: (forall b. Data b => b -> b) -> SelectionKind -> SelectionKind
$cgmapT :: (forall b. Data b => b -> b) -> SelectionKind -> SelectionKind
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SelectionKind)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SelectionKind)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c SelectionKind)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c SelectionKind)
dataTypeOf :: SelectionKind -> DataType
$cdataTypeOf :: SelectionKind -> DataType
toConstr :: SelectionKind -> Constr
$ctoConstr :: SelectionKind -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SelectionKind
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c SelectionKind
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SelectionKind -> c SelectionKind
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> SelectionKind -> c SelectionKind
$cp1Data :: Typeable SelectionKind
Data, (forall x. SelectionKind -> Rep SelectionKind x)
-> (forall x. Rep SelectionKind x -> SelectionKind)
-> Generic SelectionKind
forall x. Rep SelectionKind x -> SelectionKind
forall x. SelectionKind -> Rep SelectionKind x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SelectionKind x -> SelectionKind
$cfrom :: forall x. SelectionKind -> Rep SelectionKind x
Generic)