packages feed

llvm-pretty 0.12.1.0 → 0.13.0.0

raw patch · 4 files changed

+69/−16 lines, 4 filesnew-uploaderPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Text.LLVM.AST: isAlias :: Type -> Bool
+ Text.LLVM.AST: isAlias :: Type' ident -> Bool
- Text.LLVM.AST: isArray :: Type -> Bool
+ Text.LLVM.AST: isArray :: Type' ident -> Bool
- Text.LLVM.AST: isPointer :: Type -> Bool
+ Text.LLVM.AST: isPointer :: Type' ident -> Bool
- Text.LLVM.AST: isPrimTypeOf :: (PrimType -> Bool) -> Type -> Bool
+ Text.LLVM.AST: isPrimTypeOf :: (PrimType -> Bool) -> Type' ident -> Bool
- Text.LLVM.AST: isVector :: Type -> Bool
+ Text.LLVM.AST: isVector :: Type' ident -> Bool
- Text.LLVM.AST: isVectorOf :: (Type -> Bool) -> Type -> Bool
+ Text.LLVM.AST: isVectorOf :: (Type' ident -> Bool) -> Type' ident -> Bool
- Text.LLVM.Lens: bbLabelLens :: forall lab_i4bjW. Lens' (BasicBlock' lab_i4bjW) (Maybe lab_i4bjW)
+ Text.LLVM.Lens: bbLabelLens :: forall lab_i4blJ. Lens' (BasicBlock' lab_i4blJ) (Maybe lab_i4blJ)
- Text.LLVM.Lens: bbStmtsLens :: forall lab_i4bjW. Lens' (BasicBlock' lab_i4bjW) [Stmt' lab_i4bjW]
+ Text.LLVM.Lens: bbStmtsLens :: forall lab_i4blJ. Lens' (BasicBlock' lab_i4blJ) [Stmt' lab_i4blJ]
- Text.LLVM.Lens: dialArgsLens :: forall lab_i4b67 lab_a4lJx. Lens (DIArgList' lab_i4b67) (DIArgList' lab_a4lJx) [ValMd' lab_i4b67] [ValMd' lab_a4lJx]
+ Text.LLVM.Lens: dialArgsLens :: forall lab_i4b7U lab_a4lLi. Lens (DIArgList' lab_i4b7U) (DIArgList' lab_a4lLi) [ValMd' lab_i4b7U] [ValMd' lab_a4lLi]
- Text.LLVM.Lens: dictAlignLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) Word64
+ Text.LLVM.Lens: dictAlignLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) Word64
- Text.LLVM.Lens: dictAllocatedLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictAllocatedLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictAnnotationsLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictAnnotationsLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictAssociatedLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictAssociatedLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictBaseTypeLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictBaseTypeLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictDataLocationLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictDataLocationLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictDiscriminatorLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictDiscriminatorLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictElementsLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictElementsLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictFileLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictFileLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictFlagsLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) DIFlags
+ Text.LLVM.Lens: dictFlagsLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) DIFlags
- Text.LLVM.Lens: dictIdentifierLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe String)
+ Text.LLVM.Lens: dictIdentifierLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe String)
- Text.LLVM.Lens: dictLineLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) Word32
+ Text.LLVM.Lens: dictLineLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) Word32
- Text.LLVM.Lens: dictNameLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe String)
+ Text.LLVM.Lens: dictNameLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe String)
- Text.LLVM.Lens: dictOffsetLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) Word64
+ Text.LLVM.Lens: dictOffsetLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) Word64
- Text.LLVM.Lens: dictRankLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictRankLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictRuntimeLangLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) DwarfLang
+ Text.LLVM.Lens: dictRuntimeLangLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) DwarfLang
- Text.LLVM.Lens: dictScopeLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictScopeLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictSizeLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) Word64
+ Text.LLVM.Lens: dictSizeLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) Word64
- Text.LLVM.Lens: dictTagLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) DwarfTag
+ Text.LLVM.Lens: dictTagLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) DwarfTag
- Text.LLVM.Lens: dictTemplateParamsLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictTemplateParamsLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dictVTableHolderLens :: forall lab_i4b99. Lens' (DICompositeType' lab_i4b99) (Maybe (ValMd' lab_i4b99))
+ Text.LLVM.Lens: dictVTableHolderLens :: forall lab_i4baW. Lens' (DICompositeType' lab_i4baW) (Maybe (ValMd' lab_i4baW))
- Text.LLVM.Lens: dicuDWOIdLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) Word64
+ Text.LLVM.Lens: dicuDWOIdLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) Word64
- Text.LLVM.Lens: dicuDebugInfoForProfLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) Bool
+ Text.LLVM.Lens: dicuDebugInfoForProfLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) Bool
- Text.LLVM.Lens: dicuEmissionKindLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) DIEmissionKind
+ Text.LLVM.Lens: dicuEmissionKindLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) DIEmissionKind
- Text.LLVM.Lens: dicuEnumsLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe (ValMd' lab_i4b87))
+ Text.LLVM.Lens: dicuEnumsLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe (ValMd' lab_i4b9U))
- Text.LLVM.Lens: dicuFileLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe (ValMd' lab_i4b87))
+ Text.LLVM.Lens: dicuFileLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe (ValMd' lab_i4b9U))
- Text.LLVM.Lens: dicuFlagsLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe String)
+ Text.LLVM.Lens: dicuFlagsLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe String)
- Text.LLVM.Lens: dicuGlobalsLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe (ValMd' lab_i4b87))
+ Text.LLVM.Lens: dicuGlobalsLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe (ValMd' lab_i4b9U))
- Text.LLVM.Lens: dicuImportsLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe (ValMd' lab_i4b87))
+ Text.LLVM.Lens: dicuImportsLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe (ValMd' lab_i4b9U))
- Text.LLVM.Lens: dicuIsOptimizedLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) Bool
+ Text.LLVM.Lens: dicuIsOptimizedLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) Bool
- Text.LLVM.Lens: dicuLanguageLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) DwarfLang
+ Text.LLVM.Lens: dicuLanguageLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) DwarfLang
- Text.LLVM.Lens: dicuMacrosLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe (ValMd' lab_i4b87))
+ Text.LLVM.Lens: dicuMacrosLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe (ValMd' lab_i4b9U))
- Text.LLVM.Lens: dicuNameTableKindLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) Word64
+ Text.LLVM.Lens: dicuNameTableKindLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) Word64
- Text.LLVM.Lens: dicuProducerLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe String)
+ Text.LLVM.Lens: dicuProducerLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe String)
- Text.LLVM.Lens: dicuRangesBaseAddressLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) Bool
+ Text.LLVM.Lens: dicuRangesBaseAddressLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) Bool
- Text.LLVM.Lens: dicuRetainedTypesLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe (ValMd' lab_i4b87))
+ Text.LLVM.Lens: dicuRetainedTypesLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe (ValMd' lab_i4b9U))
- Text.LLVM.Lens: dicuRuntimeVersionLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) Word16
+ Text.LLVM.Lens: dicuRuntimeVersionLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) Word16
- Text.LLVM.Lens: dicuSDKLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe String)
+ Text.LLVM.Lens: dicuSDKLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe String)
- Text.LLVM.Lens: dicuSplitDebugFilenameLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe FilePath)
+ Text.LLVM.Lens: dicuSplitDebugFilenameLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe FilePath)
- Text.LLVM.Lens: dicuSplitDebugInliningLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) Bool
+ Text.LLVM.Lens: dicuSplitDebugInliningLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) Bool
- Text.LLVM.Lens: dicuSubprogramsLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe (ValMd' lab_i4b87))
+ Text.LLVM.Lens: dicuSubprogramsLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe (ValMd' lab_i4b9U))
- Text.LLVM.Lens: dicuSysRootLens :: forall lab_i4b87. Lens' (DICompileUnit' lab_i4b87) (Maybe String)
+ Text.LLVM.Lens: dicuSysRootLens :: forall lab_i4b9U. Lens' (DICompileUnit' lab_i4b9U) (Maybe String)
- Text.LLVM.Lens: didtAlignLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) Word64
+ Text.LLVM.Lens: didtAlignLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) Word64
- Text.LLVM.Lens: didtAnnotationsLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) (Maybe (ValMd' lab_i4bcC))
+ Text.LLVM.Lens: didtAnnotationsLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) (Maybe (ValMd' lab_i4bep))
- Text.LLVM.Lens: didtBaseTypeLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) (Maybe (ValMd' lab_i4bcC))
+ Text.LLVM.Lens: didtBaseTypeLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) (Maybe (ValMd' lab_i4bep))
- Text.LLVM.Lens: didtDwarfAddressSpaceLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) (Maybe Word32)
+ Text.LLVM.Lens: didtDwarfAddressSpaceLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) (Maybe Word32)
- Text.LLVM.Lens: didtExtraDataLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) (Maybe (ValMd' lab_i4bcC))
+ Text.LLVM.Lens: didtExtraDataLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) (Maybe (ValMd' lab_i4bep))
- Text.LLVM.Lens: didtFileLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) (Maybe (ValMd' lab_i4bcC))
+ Text.LLVM.Lens: didtFileLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) (Maybe (ValMd' lab_i4bep))
- Text.LLVM.Lens: didtFlagsLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) DIFlags
+ Text.LLVM.Lens: didtFlagsLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) DIFlags
- Text.LLVM.Lens: didtLineLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) Word32
+ Text.LLVM.Lens: didtLineLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) Word32
- Text.LLVM.Lens: didtNameLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) (Maybe String)
+ Text.LLVM.Lens: didtNameLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) (Maybe String)
- Text.LLVM.Lens: didtOffsetLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) Word64
+ Text.LLVM.Lens: didtOffsetLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) Word64
- Text.LLVM.Lens: didtScopeLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) (Maybe (ValMd' lab_i4bcC))
+ Text.LLVM.Lens: didtScopeLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) (Maybe (ValMd' lab_i4bep))
- Text.LLVM.Lens: didtSizeLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) Word64
+ Text.LLVM.Lens: didtSizeLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) Word64
- Text.LLVM.Lens: didtTagLens :: forall lab_i4bcC. Lens' (DIDerivedType' lab_i4bcC) DwarfTag
+ Text.LLVM.Lens: didtTagLens :: forall lab_i4bep. Lens' (DIDerivedType' lab_i4bep) DwarfTag
- Text.LLVM.Lens: digvAlignmentLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe Word32)
+ Text.LLVM.Lens: digvAlignmentLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe Word32)
- Text.LLVM.Lens: digvAnnotationsLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe (ValMd' lab_i4bbq))
+ Text.LLVM.Lens: digvAnnotationsLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe (ValMd' lab_i4bdd))
- Text.LLVM.Lens: digvDeclarationLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe (ValMd' lab_i4bbq))
+ Text.LLVM.Lens: digvDeclarationLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe (ValMd' lab_i4bdd))
- Text.LLVM.Lens: digvFileLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe (ValMd' lab_i4bbq))
+ Text.LLVM.Lens: digvFileLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe (ValMd' lab_i4bdd))
- Text.LLVM.Lens: digvIsDefinitionLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) Bool
+ Text.LLVM.Lens: digvIsDefinitionLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) Bool
- Text.LLVM.Lens: digvIsLocalLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) Bool
+ Text.LLVM.Lens: digvIsLocalLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) Bool
- Text.LLVM.Lens: digvLineLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) Word32
+ Text.LLVM.Lens: digvLineLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) Word32
- Text.LLVM.Lens: digvLinkageNameLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe String)
+ Text.LLVM.Lens: digvLinkageNameLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe String)
- Text.LLVM.Lens: digvNameLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe String)
+ Text.LLVM.Lens: digvNameLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe String)
- Text.LLVM.Lens: digvScopeLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe (ValMd' lab_i4bbq))
+ Text.LLVM.Lens: digvScopeLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe (ValMd' lab_i4bdd))
- Text.LLVM.Lens: digvTypeLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe (ValMd' lab_i4bbq))
+ Text.LLVM.Lens: digvTypeLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe (ValMd' lab_i4bdd))
- Text.LLVM.Lens: digvVariableLens :: forall lab_i4bbq. Lens' (DIGlobalVariable' lab_i4bbq) (Maybe (ValMd' lab_i4bbq))
+ Text.LLVM.Lens: digvVariableLens :: forall lab_i4bdd. Lens' (DIGlobalVariable' lab_i4bdd) (Maybe (ValMd' lab_i4bdd))
- Text.LLVM.Lens: digveExpressionLens :: forall lab_i4bb7. Lens' (DIGlobalVariableExpression' lab_i4bb7) (Maybe (ValMd' lab_i4bb7))
+ Text.LLVM.Lens: digveExpressionLens :: forall lab_i4bcU. Lens' (DIGlobalVariableExpression' lab_i4bcU) (Maybe (ValMd' lab_i4bcU))
- Text.LLVM.Lens: digveVariableLens :: forall lab_i4bb7. Lens' (DIGlobalVariableExpression' lab_i4bb7) (Maybe (ValMd' lab_i4bb7))
+ Text.LLVM.Lens: digveVariableLens :: forall lab_i4bcU. Lens' (DIGlobalVariableExpression' lab_i4bcU) (Maybe (ValMd' lab_i4bcU))
- Text.LLVM.Lens: dilbColumnLens :: forall lab_i4b8O. Lens' (DILexicalBlock' lab_i4b8O) Word16
+ Text.LLVM.Lens: dilbColumnLens :: forall lab_i4baB. Lens' (DILexicalBlock' lab_i4baB) Word16
- Text.LLVM.Lens: dilbFileLens :: forall lab_i4b8O. Lens' (DILexicalBlock' lab_i4b8O) (Maybe (ValMd' lab_i4b8O))
+ Text.LLVM.Lens: dilbFileLens :: forall lab_i4baB. Lens' (DILexicalBlock' lab_i4baB) (Maybe (ValMd' lab_i4baB))
- Text.LLVM.Lens: dilbLineLens :: forall lab_i4b8O. Lens' (DILexicalBlock' lab_i4b8O) Word32
+ Text.LLVM.Lens: dilbLineLens :: forall lab_i4baB. Lens' (DILexicalBlock' lab_i4baB) Word32
- Text.LLVM.Lens: dilbScopeLens :: forall lab_i4b8O. Lens' (DILexicalBlock' lab_i4b8O) (Maybe (ValMd' lab_i4b8O))
+ Text.LLVM.Lens: dilbScopeLens :: forall lab_i4baB. Lens' (DILexicalBlock' lab_i4baB) (Maybe (ValMd' lab_i4baB))
- Text.LLVM.Lens: dilbfDiscriminatorLens :: forall lab_i4b7N. Lens' (DILexicalBlockFile' lab_i4b7N) Word32
+ Text.LLVM.Lens: dilbfDiscriminatorLens :: forall lab_i4b9A. Lens' (DILexicalBlockFile' lab_i4b9A) Word32
- Text.LLVM.Lens: dilbfFileLens :: forall lab_i4b7N. Lens' (DILexicalBlockFile' lab_i4b7N) (Maybe (ValMd' lab_i4b7N))
+ Text.LLVM.Lens: dilbfFileLens :: forall lab_i4b9A. Lens' (DILexicalBlockFile' lab_i4b9A) (Maybe (ValMd' lab_i4b9A))
- Text.LLVM.Lens: dilbfScopeLens :: forall lab_i4b7N. Lens' (DILexicalBlockFile' lab_i4b7N) (ValMd' lab_i4b7N)
+ Text.LLVM.Lens: dilbfScopeLens :: forall lab_i4b9A. Lens' (DILexicalBlockFile' lab_i4b9A) (ValMd' lab_i4b9A)
- Text.LLVM.Lens: dilvAlignmentLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) (Maybe Word32)
+ Text.LLVM.Lens: dilvAlignmentLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) (Maybe Word32)
- Text.LLVM.Lens: dilvAnnotationsLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) (Maybe (ValMd' lab_i4baF))
+ Text.LLVM.Lens: dilvAnnotationsLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) (Maybe (ValMd' lab_i4bcs))
- Text.LLVM.Lens: dilvArgLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) Word16
+ Text.LLVM.Lens: dilvArgLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) Word16
- Text.LLVM.Lens: dilvFileLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) (Maybe (ValMd' lab_i4baF))
+ Text.LLVM.Lens: dilvFileLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) (Maybe (ValMd' lab_i4bcs))
- Text.LLVM.Lens: dilvFlagsLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) DIFlags
+ Text.LLVM.Lens: dilvFlagsLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) DIFlags
- Text.LLVM.Lens: dilvLineLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) Word32
+ Text.LLVM.Lens: dilvLineLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) Word32
- Text.LLVM.Lens: dilvNameLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) (Maybe String)
+ Text.LLVM.Lens: dilvNameLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) (Maybe String)
- Text.LLVM.Lens: dilvScopeLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) (Maybe (ValMd' lab_i4baF))
+ Text.LLVM.Lens: dilvScopeLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) (Maybe (ValMd' lab_i4bcs))
- Text.LLVM.Lens: dilvTypeLens :: forall lab_i4baF. Lens' (DILocalVariable' lab_i4baF) (Maybe (ValMd' lab_i4baF))
+ Text.LLVM.Lens: dilvTypeLens :: forall lab_i4bcs. Lens' (DILocalVariable' lab_i4bcs) (Maybe (ValMd' lab_i4bcs))
- Text.LLVM.Lens: dispAnnotationsLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispAnnotationsLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispContainingTypeLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispContainingTypeLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispDeclarationLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispDeclarationLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispFileLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispFileLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispFlagsLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) DIFlags
+ Text.LLVM.Lens: dispFlagsLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) DIFlags
- Text.LLVM.Lens: dispIsDefinitionLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) Bool
+ Text.LLVM.Lens: dispIsDefinitionLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) Bool
- Text.LLVM.Lens: dispIsLocalLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) Bool
+ Text.LLVM.Lens: dispIsLocalLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) Bool
- Text.LLVM.Lens: dispIsOptimizedLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) Bool
+ Text.LLVM.Lens: dispIsOptimizedLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) Bool
- Text.LLVM.Lens: dispLineLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) Word32
+ Text.LLVM.Lens: dispLineLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) Word32
- Text.LLVM.Lens: dispLinkageNameLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe String)
+ Text.LLVM.Lens: dispLinkageNameLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe String)
- Text.LLVM.Lens: dispNameLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe String)
+ Text.LLVM.Lens: dispNameLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe String)
- Text.LLVM.Lens: dispRetainedNodesLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispRetainedNodesLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispScopeLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispScopeLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispScopeLineLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) Word32
+ Text.LLVM.Lens: dispScopeLineLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) Word32
- Text.LLVM.Lens: dispTemplateParamsLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispTemplateParamsLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispThisAdjustmentLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) Int64
+ Text.LLVM.Lens: dispThisAdjustmentLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) Int64
- Text.LLVM.Lens: dispThrownTypesLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispThrownTypesLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispTypeLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispTypeLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispUnitLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) (Maybe (ValMd' lab_i4b9V))
+ Text.LLVM.Lens: dispUnitLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) (Maybe (ValMd' lab_i4bbI))
- Text.LLVM.Lens: dispVirtualIndexLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) Word32
+ Text.LLVM.Lens: dispVirtualIndexLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) Word32
- Text.LLVM.Lens: dispVirtualityLens :: forall lab_i4b9V. Lens' (DISubprogram' lab_i4b9V) DwarfVirtuality
+ Text.LLVM.Lens: dispVirtualityLens :: forall lab_i4bbI. Lens' (DISubprogram' lab_i4bbI) DwarfVirtuality
- Text.LLVM.Lens: disrCountLens :: forall lab_i4bbX. Lens' (DISubrange' lab_i4bbX) (Maybe (ValMd' lab_i4bbX))
+ Text.LLVM.Lens: disrCountLens :: forall lab_i4bdK. Lens' (DISubrange' lab_i4bdK) (Maybe (ValMd' lab_i4bdK))
- Text.LLVM.Lens: disrLowerBoundLens :: forall lab_i4bbX. Lens' (DISubrange' lab_i4bbX) (Maybe (ValMd' lab_i4bbX))
+ Text.LLVM.Lens: disrLowerBoundLens :: forall lab_i4bdK. Lens' (DISubrange' lab_i4bdK) (Maybe (ValMd' lab_i4bdK))
- Text.LLVM.Lens: disrStrideLens :: forall lab_i4bbX. Lens' (DISubrange' lab_i4bbX) (Maybe (ValMd' lab_i4bbX))
+ Text.LLVM.Lens: disrStrideLens :: forall lab_i4bdK. Lens' (DISubrange' lab_i4bdK) (Maybe (ValMd' lab_i4bdK))
- Text.LLVM.Lens: disrUpperBoundLens :: forall lab_i4bbX. Lens' (DISubrange' lab_i4bbX) (Maybe (ValMd' lab_i4bbX))
+ Text.LLVM.Lens: disrUpperBoundLens :: forall lab_i4bdK. Lens' (DISubrange' lab_i4bdK) (Maybe (ValMd' lab_i4bdK))
- Text.LLVM.Lens: distFlagsLens :: forall lab_i4bck. Lens' (DISubroutineType' lab_i4bck) DIFlags
+ Text.LLVM.Lens: distFlagsLens :: forall lab_i4be7. Lens' (DISubroutineType' lab_i4be7) DIFlags
- Text.LLVM.Lens: distTypeArrayLens :: forall lab_i4bck lab_a4lls. Lens (DISubroutineType' lab_i4bck) (DISubroutineType' lab_a4lls) (Maybe (ValMd' lab_i4bck)) (Maybe (ValMd' lab_a4lls))
+ Text.LLVM.Lens: distTypeArrayLens :: forall lab_i4be7 lab_a4lnd. Lens (DISubroutineType' lab_i4be7) (DISubroutineType' lab_a4lnd) (Maybe (ValMd' lab_i4be7)) (Maybe (ValMd' lab_a4lnd))
- Text.LLVM.Lens: dlColLens :: forall lab_i4beo. Lens' (DebugLoc' lab_i4beo) Word32
+ Text.LLVM.Lens: dlColLens :: forall lab_i4bgb. Lens' (DebugLoc' lab_i4bgb) Word32
- Text.LLVM.Lens: dlIALens :: forall lab_i4beo. Lens' (DebugLoc' lab_i4beo) (Maybe (ValMd' lab_i4beo))
+ Text.LLVM.Lens: dlIALens :: forall lab_i4bgb. Lens' (DebugLoc' lab_i4bgb) (Maybe (ValMd' lab_i4bgb))
- Text.LLVM.Lens: dlImplicitLens :: forall lab_i4beo. Lens' (DebugLoc' lab_i4beo) Bool
+ Text.LLVM.Lens: dlImplicitLens :: forall lab_i4bgb. Lens' (DebugLoc' lab_i4bgb) Bool
- Text.LLVM.Lens: dlLineLens :: forall lab_i4beo. Lens' (DebugLoc' lab_i4beo) Word32
+ Text.LLVM.Lens: dlLineLens :: forall lab_i4bgb. Lens' (DebugLoc' lab_i4bgb) Word32
- Text.LLVM.Lens: dlScopeLens :: forall lab_i4beo. Lens' (DebugLoc' lab_i4beo) (ValMd' lab_i4beo)
+ Text.LLVM.Lens: dlScopeLens :: forall lab_i4bgb. Lens' (DebugLoc' lab_i4bgb) (ValMd' lab_i4bgb)
- Text.LLVM.Lens: typedTypeLens :: forall a_i4b52. Lens' (Typed a_i4b52) Type
+ Text.LLVM.Lens: typedTypeLens :: forall a_i4b6P. Lens' (Typed a_i4b6P) Type
- Text.LLVM.Lens: typedValueLens :: forall a_i4b52 a_a4l8G. Lens (Typed a_i4b52) (Typed a_a4l8G) a_i4b52 a_a4l8G
+ Text.LLVM.Lens: typedValueLens :: forall a_i4b6P a_a4lar. Lens (Typed a_i4b6P) (Typed a_a4lar) a_i4b6P a_a4lar

Files

CHANGELOG.md view
@@ -1,5 +1,12 @@ # Revision history for llvm-pretty +## 0.13.0.0 (March 2025)++* Changed some of the signatures of helper functions in the AST to make them more+  flexible by using `Type' ident` rather than `Type` in their signatures (the+  latter fixes `ident` to be `Ident`). Changed functions: `isAlias`,+  `isPrimTypeOf`, `isVector`, `isVectorOf`, `isArray`, and `isPointer`.+ ## 0.12.1.0 (August 2024)  * Fix for printing NaN and infinite floating point values.
llvm-pretty.cabal view
@@ -1,6 +1,6 @@ Cabal-version:       2.2 Name:                llvm-pretty-Version:             0.12.1.0+Version:             0.13.0.0 License:             BSD-3-Clause License-file:        LICENSE Author:              Trevor Elliott@@ -13,7 +13,7 @@   Augustsson.  The library provides a monadic interface to a pretty printer,   that allows functions to be defined and called, generating the corresponding   LLVM assembly when run.-tested-with:         GHC==8.4.3, GHC==8.2.2, GHC==8.0.2+tested-with:         GHC==9.8.4, GHC==9.6.6, GHC==9.4.8 extra-doc-files:     CHANGELOG.md, README.md  @@ -55,7 +55,7 @@                        microlens-th     >= 0.4,                        syb              >= 0.7,                        template-haskell >= 2.7,-                       th-abstraction   >= 0.3.1 && <0.7+                       th-abstraction   >= 0.3.1 && <0.8  Test-suite llvm-pretty-test   Import: common
src/Text/LLVM.hs view
@@ -700,8 +700,8 @@ -- | Emit a call instruction, and generate a new variable for its result. call :: IsValue a => Typed a -> [Typed Value] -> BB (Typed Value) call sym vs = case typedType sym of-  ty@(PtrTo (FunTy rty _ _)) -> observe rty (Call False ty (toValue sym) vs)-  _                          -> error "invalid function type given to call"+  PtrTo ty@(FunTy rty _ _) -> observe rty (Call False ty (toValue sym) vs)+  _                        -> error "invalid function type given to call"  -- | Emit a call instruction, but don't generate a new variable for its result. call_ :: IsValue a => Typed a -> [Typed Value] -> BB ()
src/Text/LLVM/AST.hs view
@@ -480,11 +480,11 @@ isFloatingPoint (FloatType _) = True isFloatingPoint _             = False -isAlias :: Type -> Bool+isAlias :: Type' ident -> Bool isAlias Alias{} = True isAlias _       = False -isPrimTypeOf :: (PrimType -> Bool) -> Type -> Bool+isPrimTypeOf :: (PrimType -> Bool) -> Type' ident -> Bool isPrimTypeOf p (PrimType pt) = p pt isPrimTypeOf _ _             = False @@ -496,20 +496,20 @@ isInteger Integer{} = True isInteger _         = False -isVector :: Type -> Bool+isVector :: Type' ident -> Bool isVector Vector{} = True isVector _        = False -isVectorOf :: (Type -> Bool) -> Type -> Bool+isVectorOf :: (Type' ident -> Bool) -> Type' ident -> Bool isVectorOf p (Vector _ e) = p e isVectorOf _ _            = False -isArray :: Type -> Bool+isArray :: Type' ident -> Bool isArray ty = case ty of   Array _ _ -> True   _         -> False -isPointer :: Type -> Bool+isPointer :: Type' ident -> Bool isPointer (PtrTo _) = True isPointer PtrOpaque = True isPointer _         = False@@ -1196,7 +1196,16 @@     | ShuffleVector (Typed (Value' lab)) (Value' lab) (Typed (Value' lab))-+    {- ^ * Constructs a fixed permutation of two input vectors: the first+           and second arguments are input vectors, and the third argument+           is the mask.+         * Middle of basic block.+         * Returns the permuted vector. For each element, the mask selects+           an element from one of the input vectors to copy to the result:+            * non-negative mask values represent an index into the concatenated+              pair of input vectors, and+            * -1 mask value indicates that the output element is poison.+    -}    | Jump lab     {- ^ * Jump to the given basic block.@@ -1208,6 +1217,16 @@          * Ends basic block. -}    | Invoke Type (Value' lab) [Typed (Value' lab)] lab lab+    {- ^ * Calls the specified target function, then branches to the success+           label.  If an exception occurs during the call, the exception unwind+           handling branches to the second label.+         * Arguments:+           1. The function's return type+           2. The function target itself (to be called)+           3. arguments to the function+           4. successful return target label+           5. on-exception unwind target label+         * Ends basic block. -}    | Comment String     -- ^ Comment@@ -1217,21 +1236,48 @@    | Unwind   | VaArg (Typed (Value' lab)) Type+    -- ^ Accesses arguments passed through \"varargs\" areas of a function call.+    -- The argument is a @va_list*@; this instruction returns the value of the+    -- specified type located at the target and increments the pointer.+   | IndirectBr (Typed (Value' lab)) [lab]+    -- ^ Branch via pointer indirection.  The argument is the address of the+    -- label to jump to.  (All) Possible destination targets are provided.    | Switch (Typed (Value' lab)) lab [(Integer,lab)]-    {- ^ * Multi-way branch: the first value determines the direction-           of the branch, the label is a default direction, if the value-           does not appear in the jump table, the last argument is the-           jump table.+    {- ^ * Multi-way branch: the first value determines the target index+           for the jump, which is looked up in the third argument table+           (key values are unique).  The second argument is the default+           destination if the target is not found in the table.          * Ends basic block. -}    | LandingPad Type (Maybe (Typed (Value' lab))) Bool [Clause' lab]+    {- ^ Target of an exception (from the 'Invoke' instruction).+         * Arguments:+           1. The result type (the values set by the personality function+              on re-entry to the function).+           2. The second argument may be the personality function, which defines+              values on re-entry. This is used in older LLVM versions and is+              not supplied for recent LLVM versions.+           3. True if this block is a "cleanup".+           4. The list of clauses to handle the exception;  the clauses are+              used to match the exception thrown.+         * If no clause matches and cleanup not set, continue unwinding up+           the stack (see 'Resume').+         * If cleanup is false, there must be at least one clause+     -}    | Resume (Typed (Value' lab))+    {- ^ Resumes propagation of an in-flight exception whose unwinding was+         interrupted by a 'LandingPad' instruction.+         * Argument: the value of the exception to propagate.+    -}    | Freeze (Typed (Value' lab))     {- ^ * Used to stop propagation of @undef@ and @poison@ values.+         * If the argument is @undef@ or @poison@, returns an arbitrary+           (but fixed) value of that type instead, otherwise a no-op and+           returns its argument.          * Middle of basic block. -}      deriving (Data, Eq, Functor, Generic, Ord, Show, Typeable)