Skip to content

Commit

Permalink
update LLVM C++ API wrappers from llvm 10 to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jul 24, 2020
1 parent cd91e17 commit c8ea8cf
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 24 deletions.
67 changes: 61 additions & 6 deletions src-self-hosted/clang.zig
Expand Up @@ -154,15 +154,19 @@ pub const ZigClangTypeClass = extern enum {
Auto,
DeducedTemplateSpecialization,
DependentAddressSpace,
DependentExtInt,
DependentName,
DependentSizedExtVector,
DependentTemplateSpecialization,
DependentVector,
Elaborated,
ExtInt,
FunctionNoProto,
FunctionProto,
InjectedClassName,
MacroQualified,
ConstantMatrix,
DependentSizedMatrix,
MemberPointer,
ObjCObjectPointer,
ObjCObject,
Expand Down Expand Up @@ -215,6 +219,7 @@ const ZigClangStmtClass = extern enum {
OMPCancelDirectiveClass,
OMPCancellationPointDirectiveClass,
OMPCriticalDirectiveClass,
OMPDepobjDirectiveClass,
OMPFlushDirectiveClass,
OMPDistributeDirectiveClass,
OMPDistributeParallelForDirectiveClass,
Expand Down Expand Up @@ -246,6 +251,7 @@ const ZigClangStmtClass = extern enum {
OMPParallelDirectiveClass,
OMPParallelMasterDirectiveClass,
OMPParallelSectionsDirectiveClass,
OMPScanDirectiveClass,
OMPSectionDirectiveClass,
OMPSectionsDirectiveClass,
OMPSingleDirectiveClass,
Expand Down Expand Up @@ -320,6 +326,7 @@ const ZigClangStmtClass = extern enum {
BuiltinBitCastExprClass,
CStyleCastExprClass,
CXXFunctionalCastExprClass,
CXXAddrspaceCastExprClass,
CXXConstCastExprClass,
CXXDynamicCastExprClass,
CXXReinterpretCastExprClass,
Expand Down Expand Up @@ -355,9 +362,12 @@ const ZigClangStmtClass = extern enum {
MSPropertyRefExprClass,
MSPropertySubscriptExprClass,
MaterializeTemporaryExprClass,
MatrixSubscriptExprClass,
MemberExprClass,
NoInitExprClass,
OMPArraySectionExprClass,
OMPArrayShapingExprClass,
OMPIteratorExprClass,
ObjCArrayLiteralClass,
ObjCAvailabilityCheckExprClass,
ObjCBoolLiteralExprClass,
Expand All @@ -382,6 +392,7 @@ const ZigClangStmtClass = extern enum {
ParenListExprClass,
PredefinedExprClass,
PseudoObjectExprClass,
RecoveryExprClass,
RequiresExprClass,
ShuffleVectorExprClass,
SizeOfPackExprClass,
Expand Down Expand Up @@ -549,6 +560,7 @@ pub const ZigClangDeclKind = extern enum {
VarTemplatePartialSpecialization,
EnumConstant,
IndirectField,
MSGuid,
OMPDeclareMapper,
OMPDeclareReduction,
UnresolvedUsingValue,
Expand Down Expand Up @@ -623,6 +635,43 @@ pub const ZigClangBuiltinTypeKind = extern enum {
SveFloat16,
SveFloat32,
SveFloat64,
SveBFloat16,
SveInt8x2,
SveInt16x2,
SveInt32x2,
SveInt64x2,
SveUint8x2,
SveUint16x2,
SveUint32x2,
SveUint64x2,
SveFloat16x2,
SveFloat32x2,
SveFloat64x2,
SveBFloat16x2,
SveInt8x3,
SveInt16x3,
SveInt32x3,
SveInt64x3,
SveUint8x3,
SveUint16x3,
SveUint32x3,
SveUint64x3,
SveFloat16x3,
SveFloat32x3,
SveFloat64x3,
SveBFloat16x3,
SveInt8x4,
SveInt16x4,
SveInt32x4,
SveInt64x4,
SveUint8x4,
SveUint16x4,
SveUint32x4,
SveUint64x4,
SveFloat16x4,
SveFloat32x4,
SveFloat64x4,
SveBFloat16x4,
SveBool,
Void,
Bool,
Expand Down Expand Up @@ -674,6 +723,7 @@ pub const ZigClangBuiltinTypeKind = extern enum {
Double,
LongDouble,
Float16,
BFloat16,
Float128,
NullPtr,
ObjCId,
Expand All @@ -691,7 +741,10 @@ pub const ZigClangBuiltinTypeKind = extern enum {
UnknownAny,
BuiltinFn,
ARCUnbridgedCast,
IncompleteMatrixIdx,
OMPArraySection,
OMPArrayShaping,
OMPIterator,
};

pub const ZigClangCallingConv = extern enum {
Expand Down Expand Up @@ -724,12 +777,14 @@ pub const ZigClangStorageClass = extern enum {
Register,
};

pub const ZigClangAPFloat_roundingMode = extern enum {
NearestTiesToEven,
TowardPositive,
TowardNegative,
TowardZero,
NearestTiesToAway,
pub const ZigClangAPFloat_roundingMode = extern enum(i8) {
TowardZero = 0,
NearestTiesToEven = 1,
TowardPositive = 2,
TowardNegative = 3,
NearestTiesToAway = 4,
Dynamic = 7,
Invalid = -1,
};

pub const ZigClangStringLiteral_StringKind = extern enum {
Expand Down

0 comments on commit c8ea8cf

Please sign in to comment.