Helpers for attribute/type compatibility and intersection.

Enums

Name

Description

AttributeSafetyKind

Selects which attributes to consider when checking type compatibility.

Functions

Name

Description

areInlineCompatible

Return true if Caller and Callee have compatible attributes for inlining.

areOutlineCompatible

Checks if there are any incompatible function attributes between A and B.

getUBImplyingAttributes

Return param/return attributes that imply UB for invalid values.

isNoFPClassCompatibleType

Returns true if this is a type legal for the 'nofpclass' attribute. This follows the same type rules as FPMathOperator.

isStrictFPInlineCompatible

Return true unless Callee is strictfp while Caller is not.

mergeAttributesForInlining

Merge caller's and callee's attributes.

mergeAttributesForOutlining

Merges the functions attributes from ToMerge into function Base.

typeIncompatible

Return the mask of attributes incompatible with type Ty.

updateMinLegalVectorWidthAttr

Update min‐legal‐vector‐width if it is in Attribute and less than Width.

Created with MrDocs