llvm-pretty-0.5: A pretty printing library inspired by the llvm binding.
Text.LLVM.Labels
class Functor f => HasLabel f where Source #
Minimal complete definition
relabel
Methods
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> f a -> m (f b) Source #
Given a function for resolving labels, where the presence of a symbol denotes a label in a different function, rename all labels in a function.
Instances
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> ConstExpr' a -> m (ConstExpr' b) Source #
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> Stmt' a -> m (Stmt' b) Source #
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> DebugLoc' a -> m (DebugLoc' b) Source #
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> ValMd' a -> m (ValMd' b) Source #
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> Value' a -> m (Value' b) Source #
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> Clause' a -> m (Clause' b) Source #
relabel :: Applicative m => (Maybe Symbol -> a -> m b) -> Instr' a -> m (Instr' b) Source #