Skip to content

Commit

Permalink
Run compiler/src/iree/compiler/API/generate_exports.py. (#18832)
Browse files Browse the repository at this point in the history
These files being outdated has been a source of build errors before.
Updating using
[`compiler/src/iree/compiler/API/generate_exports.py`](https://github.com/iree-org/iree/blob/main/compiler/src/iree/compiler/API/generate_exports.py)
(as-is) doesn't help with the latest errors
(#18804 (comment)),
but it shouldn't hurt.
  • Loading branch information
ScottTodd authored Oct 18, 2024
1 parent 6a2b50f commit 5546ae0
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 0 deletions.
134 changes: 134 additions & 0 deletions compiler/src/iree/compiler/API/api_exports.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,17 +335,29 @@ extern void mlirFlatSymbolRefAttrGet();
extern void mlirFlatSymbolRefAttrGetValue();
extern void mlirFloat16TypeGetTypeID();
extern void mlirFloat32TypeGetTypeID();
extern void mlirFloat4E2M1FNTypeGet();
extern void mlirFloat4E2M1FNTypeGetTypeID();
extern void mlirFloat64TypeGetTypeID();
extern void mlirFloat6E2M3FNTypeGet();
extern void mlirFloat6E2M3FNTypeGetTypeID();
extern void mlirFloat6E3M2FNTypeGet();
extern void mlirFloat6E3M2FNTypeGetTypeID();
extern void mlirFloat8E3M4TypeGet();
extern void mlirFloat8E3M4TypeGetTypeID();
extern void mlirFloat8E4M3B11FNUZTypeGet();
extern void mlirFloat8E4M3B11FNUZTypeGetTypeID();
extern void mlirFloat8E4M3FNTypeGet();
extern void mlirFloat8E4M3FNTypeGetTypeID();
extern void mlirFloat8E4M3FNUZTypeGet();
extern void mlirFloat8E4M3FNUZTypeGetTypeID();
extern void mlirFloat8E4M3TypeGet();
extern void mlirFloat8E4M3TypeGetTypeID();
extern void mlirFloat8E5M2FNUZTypeGet();
extern void mlirFloat8E5M2FNUZTypeGetTypeID();
extern void mlirFloat8E5M2TypeGet();
extern void mlirFloat8E5M2TypeGetTypeID();
extern void mlirFloat8E8M0FNUTypeGet();
extern void mlirFloat8E8M0FNUTypeGetTypeID();
extern void mlirFloatAttrDoubleGet();
extern void mlirFloatAttrDoubleGetChecked();
extern void mlirFloatAttrGetTypeID();
Expand All @@ -360,16 +372,23 @@ extern void mlirFunctionTypeGetNumInputs();
extern void mlirFunctionTypeGetNumResults();
extern void mlirFunctionTypeGetResult();
extern void mlirFunctionTypeGetTypeID();
extern void mlirGPUAsyncTokenTypeGet();
extern void mlirGPUObjectAttrGet();
extern void mlirGPUObjectAttrGetFormat();
extern void mlirGPUObjectAttrGetKernels();
extern void mlirGPUObjectAttrGetObject();
extern void mlirGPUObjectAttrGetProperties();
extern void mlirGPUObjectAttrGetTarget();
extern void mlirGPUObjectAttrGetWithKernels();
extern void mlirGPUObjectAttrHasKernels();
extern void mlirGPUObjectAttrHasProperties();
extern void mlirGetDialectHandle__iree_input__();
extern void mlirGetDialectHandle__transform__();
extern void mlirIREELinalgTransformRegisterPasses();
extern void mlirIREETransformRegisterPasses();
extern void mlirIRRewriterCreate();
extern void mlirIRRewriterCreateFromOp();
extern void mlirIRRewriterDestroy();
extern void mlirIdentifierEqual();
extern void mlirIdentifierGet();
extern void mlirIdentifierGetContext();
Expand All @@ -385,7 +404,9 @@ extern void mlirIntegerAttrGetTypeID();
extern void mlirIntegerAttrGetValueInt();
extern void mlirIntegerAttrGetValueSInt();
extern void mlirIntegerAttrGetValueUInt();
extern void mlirIntegerSetAttrGet();
extern void mlirIntegerSetAttrGetTypeID();
extern void mlirIntegerSetAttrGetValue();
extern void mlirIntegerSetDump();
extern void mlirIntegerSetEmptyGet();
extern void mlirIntegerSetEqual();
Expand Down Expand Up @@ -415,15 +436,18 @@ extern void mlirIsGlobalDebugEnabled();
extern void mlirLLVMArrayTypeGet();
extern void mlirLLVMCConvAttrGet();
extern void mlirLLVMComdatAttrGet();
extern void mlirLLVMDIAnnotationAttrGet();
extern void mlirLLVMDIBasicTypeAttrGet();
extern void mlirLLVMDICompileUnitAttrGet();
extern void mlirLLVMDICompositeTypeAttrGet();
extern void mlirLLVMDICompositeTypeAttrGetRecSelf();
extern void mlirLLVMDIDerivedTypeAttrGet();
extern void mlirLLVMDIDerivedTypeAttrGetBaseType();
extern void mlirLLVMDIExpressionAttrGet();
extern void mlirLLVMDIExpressionElemAttrGet();
extern void mlirLLVMDIFileAttrGet();
extern void mlirLLVMDIFlagsAttrGet();
extern void mlirLLVMDIImportedEntityAttrGet();
extern void mlirLLVMDILexicalBlockAttrGet();
extern void mlirLLVMDILexicalBlockFileAttrGet();
extern void mlirLLVMDILocalVariableAttrGet();
Expand All @@ -435,6 +459,7 @@ extern void mlirLLVMDISubprogramAttrGet();
extern void mlirLLVMDISubprogramAttrGetCompileUnit();
extern void mlirLLVMDISubprogramAttrGetFile();
extern void mlirLLVMDISubprogramAttrGetLine();
extern void mlirLLVMDISubprogramAttrGetRecSelf();
extern void mlirLLVMDISubprogramAttrGetScope();
extern void mlirLLVMDISubprogramAttrGetScopeLine();
extern void mlirLLVMDISubprogramAttrGetType();
Expand Down Expand Up @@ -501,8 +526,10 @@ extern void mlirOpPrintingFlagsAssumeVerified();
extern void mlirOpPrintingFlagsCreate();
extern void mlirOpPrintingFlagsDestroy();
extern void mlirOpPrintingFlagsElideLargeElementsAttrs();
extern void mlirOpPrintingFlagsElideLargeResourceString();
extern void mlirOpPrintingFlagsEnableDebugInfo();
extern void mlirOpPrintingFlagsPrintGenericOpForm();
extern void mlirOpPrintingFlagsSkipRegions();
extern void mlirOpPrintingFlagsUseLocalScope();
extern void mlirOpResultGetOwner();
extern void mlirOpResultGetResultNumber();
Expand Down Expand Up @@ -607,6 +634,39 @@ extern void mlirRegionTakeBody();
extern void mlirRegisterGPUPasses();
extern void mlirRegisterLinalgPasses();
extern void mlirRewritePatternSetFromPDLPatternModule();
extern void mlirRewriterBaseCancelOpModification();
extern void mlirRewriterBaseClearInsertionPoint();
extern void mlirRewriterBaseClone();
extern void mlirRewriterBaseCloneRegionBefore();
extern void mlirRewriterBaseCloneWithoutRegions();
extern void mlirRewriterBaseCreateBlockBefore();
extern void mlirRewriterBaseEraseBlock();
extern void mlirRewriterBaseEraseOp();
extern void mlirRewriterBaseFinalizeOpModification();
extern void mlirRewriterBaseGetBlock();
extern void mlirRewriterBaseGetContext();
extern void mlirRewriterBaseGetInsertionBlock();
extern void mlirRewriterBaseInlineBlockBefore();
extern void mlirRewriterBaseInlineRegionBefore();
extern void mlirRewriterBaseInsert();
extern void mlirRewriterBaseMergeBlocks();
extern void mlirRewriterBaseMoveBlockBefore();
extern void mlirRewriterBaseMoveOpAfter();
extern void mlirRewriterBaseMoveOpBefore();
extern void mlirRewriterBaseReplaceAllOpUsesWithOperation();
extern void mlirRewriterBaseReplaceAllOpUsesWithValueRange();
extern void mlirRewriterBaseReplaceAllUsesExcept();
extern void mlirRewriterBaseReplaceAllUsesWith();
extern void mlirRewriterBaseReplaceAllValueRangeUsesWith();
extern void mlirRewriterBaseReplaceOpUsesWithinBlock();
extern void mlirRewriterBaseReplaceOpWithOperation();
extern void mlirRewriterBaseReplaceOpWithValues();
extern void mlirRewriterBaseSetInsertionPointAfter();
extern void mlirRewriterBaseSetInsertionPointAfterValue();
extern void mlirRewriterBaseSetInsertionPointBefore();
extern void mlirRewriterBaseSetInsertionPointToEnd();
extern void mlirRewriterBaseSetInsertionPointToStart();
extern void mlirRewriterBaseStartOpModification();
extern void mlirSetGlobalDebugType();
extern void mlirSetGlobalDebugTypes();
extern void mlirShapedTypeGetDimSize();
Expand Down Expand Up @@ -693,12 +753,19 @@ extern void mlirTypeIsAF16();
extern void mlirTypeIsAF32();
extern void mlirTypeIsAF64();
extern void mlirTypeIsAFloat();
extern void mlirTypeIsAFloat4E2M1FN();
extern void mlirTypeIsAFloat6E2M3FN();
extern void mlirTypeIsAFloat6E3M2FN();
extern void mlirTypeIsAFloat8E3M4();
extern void mlirTypeIsAFloat8E4M3();
extern void mlirTypeIsAFloat8E4M3B11FNUZ();
extern void mlirTypeIsAFloat8E4M3FN();
extern void mlirTypeIsAFloat8E4M3FNUZ();
extern void mlirTypeIsAFloat8E5M2();
extern void mlirTypeIsAFloat8E5M2FNUZ();
extern void mlirTypeIsAFloat8E8M0FNU();
extern void mlirTypeIsAFunction();
extern void mlirTypeIsAGPUAsyncTokenType();
extern void mlirTypeIsAIndex();
extern void mlirTypeIsAInteger();
extern void mlirTypeIsALLVMPointerType();
Expand Down Expand Up @@ -1095,17 +1162,29 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirFlatSymbolRefAttrGetValue;
x += (uintptr_t)&mlirFloat16TypeGetTypeID;
x += (uintptr_t)&mlirFloat32TypeGetTypeID;
x += (uintptr_t)&mlirFloat4E2M1FNTypeGet;
x += (uintptr_t)&mlirFloat4E2M1FNTypeGetTypeID;
x += (uintptr_t)&mlirFloat64TypeGetTypeID;
x += (uintptr_t)&mlirFloat6E2M3FNTypeGet;
x += (uintptr_t)&mlirFloat6E2M3FNTypeGetTypeID;
x += (uintptr_t)&mlirFloat6E3M2FNTypeGet;
x += (uintptr_t)&mlirFloat6E3M2FNTypeGetTypeID;
x += (uintptr_t)&mlirFloat8E3M4TypeGet;
x += (uintptr_t)&mlirFloat8E3M4TypeGetTypeID;
x += (uintptr_t)&mlirFloat8E4M3B11FNUZTypeGet;
x += (uintptr_t)&mlirFloat8E4M3B11FNUZTypeGetTypeID;
x += (uintptr_t)&mlirFloat8E4M3FNTypeGet;
x += (uintptr_t)&mlirFloat8E4M3FNTypeGetTypeID;
x += (uintptr_t)&mlirFloat8E4M3FNUZTypeGet;
x += (uintptr_t)&mlirFloat8E4M3FNUZTypeGetTypeID;
x += (uintptr_t)&mlirFloat8E4M3TypeGet;
x += (uintptr_t)&mlirFloat8E4M3TypeGetTypeID;
x += (uintptr_t)&mlirFloat8E5M2FNUZTypeGet;
x += (uintptr_t)&mlirFloat8E5M2FNUZTypeGetTypeID;
x += (uintptr_t)&mlirFloat8E5M2TypeGet;
x += (uintptr_t)&mlirFloat8E5M2TypeGetTypeID;
x += (uintptr_t)&mlirFloat8E8M0FNUTypeGet;
x += (uintptr_t)&mlirFloat8E8M0FNUTypeGetTypeID;
x += (uintptr_t)&mlirFloatAttrDoubleGet;
x += (uintptr_t)&mlirFloatAttrDoubleGetChecked;
x += (uintptr_t)&mlirFloatAttrGetTypeID;
Expand All @@ -1120,16 +1199,23 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirFunctionTypeGetNumResults;
x += (uintptr_t)&mlirFunctionTypeGetResult;
x += (uintptr_t)&mlirFunctionTypeGetTypeID;
x += (uintptr_t)&mlirGPUAsyncTokenTypeGet;
x += (uintptr_t)&mlirGPUObjectAttrGet;
x += (uintptr_t)&mlirGPUObjectAttrGetFormat;
x += (uintptr_t)&mlirGPUObjectAttrGetKernels;
x += (uintptr_t)&mlirGPUObjectAttrGetObject;
x += (uintptr_t)&mlirGPUObjectAttrGetProperties;
x += (uintptr_t)&mlirGPUObjectAttrGetTarget;
x += (uintptr_t)&mlirGPUObjectAttrGetWithKernels;
x += (uintptr_t)&mlirGPUObjectAttrHasKernels;
x += (uintptr_t)&mlirGPUObjectAttrHasProperties;
x += (uintptr_t)&mlirGetDialectHandle__iree_input__;
x += (uintptr_t)&mlirGetDialectHandle__transform__;
x += (uintptr_t)&mlirIREELinalgTransformRegisterPasses;
x += (uintptr_t)&mlirIREETransformRegisterPasses;
x += (uintptr_t)&mlirIRRewriterCreate;
x += (uintptr_t)&mlirIRRewriterCreateFromOp;
x += (uintptr_t)&mlirIRRewriterDestroy;
x += (uintptr_t)&mlirIdentifierEqual;
x += (uintptr_t)&mlirIdentifierGet;
x += (uintptr_t)&mlirIdentifierGetContext;
Expand All @@ -1145,7 +1231,9 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirIntegerAttrGetValueInt;
x += (uintptr_t)&mlirIntegerAttrGetValueSInt;
x += (uintptr_t)&mlirIntegerAttrGetValueUInt;
x += (uintptr_t)&mlirIntegerSetAttrGet;
x += (uintptr_t)&mlirIntegerSetAttrGetTypeID;
x += (uintptr_t)&mlirIntegerSetAttrGetValue;
x += (uintptr_t)&mlirIntegerSetDump;
x += (uintptr_t)&mlirIntegerSetEmptyGet;
x += (uintptr_t)&mlirIntegerSetEqual;
Expand Down Expand Up @@ -1175,15 +1263,18 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirLLVMArrayTypeGet;
x += (uintptr_t)&mlirLLVMCConvAttrGet;
x += (uintptr_t)&mlirLLVMComdatAttrGet;
x += (uintptr_t)&mlirLLVMDIAnnotationAttrGet;
x += (uintptr_t)&mlirLLVMDIBasicTypeAttrGet;
x += (uintptr_t)&mlirLLVMDICompileUnitAttrGet;
x += (uintptr_t)&mlirLLVMDICompositeTypeAttrGet;
x += (uintptr_t)&mlirLLVMDICompositeTypeAttrGetRecSelf;
x += (uintptr_t)&mlirLLVMDIDerivedTypeAttrGet;
x += (uintptr_t)&mlirLLVMDIDerivedTypeAttrGetBaseType;
x += (uintptr_t)&mlirLLVMDIExpressionAttrGet;
x += (uintptr_t)&mlirLLVMDIExpressionElemAttrGet;
x += (uintptr_t)&mlirLLVMDIFileAttrGet;
x += (uintptr_t)&mlirLLVMDIFlagsAttrGet;
x += (uintptr_t)&mlirLLVMDIImportedEntityAttrGet;
x += (uintptr_t)&mlirLLVMDILexicalBlockAttrGet;
x += (uintptr_t)&mlirLLVMDILexicalBlockFileAttrGet;
x += (uintptr_t)&mlirLLVMDILocalVariableAttrGet;
Expand All @@ -1195,6 +1286,7 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirLLVMDISubprogramAttrGetCompileUnit;
x += (uintptr_t)&mlirLLVMDISubprogramAttrGetFile;
x += (uintptr_t)&mlirLLVMDISubprogramAttrGetLine;
x += (uintptr_t)&mlirLLVMDISubprogramAttrGetRecSelf;
x += (uintptr_t)&mlirLLVMDISubprogramAttrGetScope;
x += (uintptr_t)&mlirLLVMDISubprogramAttrGetScopeLine;
x += (uintptr_t)&mlirLLVMDISubprogramAttrGetType;
Expand Down Expand Up @@ -1261,8 +1353,10 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirOpPrintingFlagsCreate;
x += (uintptr_t)&mlirOpPrintingFlagsDestroy;
x += (uintptr_t)&mlirOpPrintingFlagsElideLargeElementsAttrs;
x += (uintptr_t)&mlirOpPrintingFlagsElideLargeResourceString;
x += (uintptr_t)&mlirOpPrintingFlagsEnableDebugInfo;
x += (uintptr_t)&mlirOpPrintingFlagsPrintGenericOpForm;
x += (uintptr_t)&mlirOpPrintingFlagsSkipRegions;
x += (uintptr_t)&mlirOpPrintingFlagsUseLocalScope;
x += (uintptr_t)&mlirOpResultGetOwner;
x += (uintptr_t)&mlirOpResultGetResultNumber;
Expand Down Expand Up @@ -1367,6 +1461,39 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirRegisterGPUPasses;
x += (uintptr_t)&mlirRegisterLinalgPasses;
x += (uintptr_t)&mlirRewritePatternSetFromPDLPatternModule;
x += (uintptr_t)&mlirRewriterBaseCancelOpModification;
x += (uintptr_t)&mlirRewriterBaseClearInsertionPoint;
x += (uintptr_t)&mlirRewriterBaseClone;
x += (uintptr_t)&mlirRewriterBaseCloneRegionBefore;
x += (uintptr_t)&mlirRewriterBaseCloneWithoutRegions;
x += (uintptr_t)&mlirRewriterBaseCreateBlockBefore;
x += (uintptr_t)&mlirRewriterBaseEraseBlock;
x += (uintptr_t)&mlirRewriterBaseEraseOp;
x += (uintptr_t)&mlirRewriterBaseFinalizeOpModification;
x += (uintptr_t)&mlirRewriterBaseGetBlock;
x += (uintptr_t)&mlirRewriterBaseGetContext;
x += (uintptr_t)&mlirRewriterBaseGetInsertionBlock;
x += (uintptr_t)&mlirRewriterBaseInlineBlockBefore;
x += (uintptr_t)&mlirRewriterBaseInlineRegionBefore;
x += (uintptr_t)&mlirRewriterBaseInsert;
x += (uintptr_t)&mlirRewriterBaseMergeBlocks;
x += (uintptr_t)&mlirRewriterBaseMoveBlockBefore;
x += (uintptr_t)&mlirRewriterBaseMoveOpAfter;
x += (uintptr_t)&mlirRewriterBaseMoveOpBefore;
x += (uintptr_t)&mlirRewriterBaseReplaceAllOpUsesWithOperation;
x += (uintptr_t)&mlirRewriterBaseReplaceAllOpUsesWithValueRange;
x += (uintptr_t)&mlirRewriterBaseReplaceAllUsesExcept;
x += (uintptr_t)&mlirRewriterBaseReplaceAllUsesWith;
x += (uintptr_t)&mlirRewriterBaseReplaceAllValueRangeUsesWith;
x += (uintptr_t)&mlirRewriterBaseReplaceOpUsesWithinBlock;
x += (uintptr_t)&mlirRewriterBaseReplaceOpWithOperation;
x += (uintptr_t)&mlirRewriterBaseReplaceOpWithValues;
x += (uintptr_t)&mlirRewriterBaseSetInsertionPointAfter;
x += (uintptr_t)&mlirRewriterBaseSetInsertionPointAfterValue;
x += (uintptr_t)&mlirRewriterBaseSetInsertionPointBefore;
x += (uintptr_t)&mlirRewriterBaseSetInsertionPointToEnd;
x += (uintptr_t)&mlirRewriterBaseSetInsertionPointToStart;
x += (uintptr_t)&mlirRewriterBaseStartOpModification;
x += (uintptr_t)&mlirSetGlobalDebugType;
x += (uintptr_t)&mlirSetGlobalDebugTypes;
x += (uintptr_t)&mlirShapedTypeGetDimSize;
Expand Down Expand Up @@ -1453,12 +1580,19 @@ uintptr_t __iree_compiler_hidden_force_extern() {
x += (uintptr_t)&mlirTypeIsAF32;
x += (uintptr_t)&mlirTypeIsAF64;
x += (uintptr_t)&mlirTypeIsAFloat;
x += (uintptr_t)&mlirTypeIsAFloat4E2M1FN;
x += (uintptr_t)&mlirTypeIsAFloat6E2M3FN;
x += (uintptr_t)&mlirTypeIsAFloat6E3M2FN;
x += (uintptr_t)&mlirTypeIsAFloat8E3M4;
x += (uintptr_t)&mlirTypeIsAFloat8E4M3;
x += (uintptr_t)&mlirTypeIsAFloat8E4M3B11FNUZ;
x += (uintptr_t)&mlirTypeIsAFloat8E4M3FN;
x += (uintptr_t)&mlirTypeIsAFloat8E4M3FNUZ;
x += (uintptr_t)&mlirTypeIsAFloat8E5M2;
x += (uintptr_t)&mlirTypeIsAFloat8E5M2FNUZ;
x += (uintptr_t)&mlirTypeIsAFloat8E8M0FNU;
x += (uintptr_t)&mlirTypeIsAFunction;
x += (uintptr_t)&mlirTypeIsAGPUAsyncTokenType;
x += (uintptr_t)&mlirTypeIsAIndex;
x += (uintptr_t)&mlirTypeIsAInteger;
x += (uintptr_t)&mlirTypeIsALLVMPointerType;
Expand Down
Loading

0 comments on commit 5546ae0

Please sign in to comment.