Integrate LLVM at llvm/llvm-project@6713332fdd
Updates LLVM usage to match [6713332fddb7](https://github.com/llvm/llvm-project/commit/6713332fddb7) PiperOrigin-RevId: 336988895
This commit is contained in:
parent
53d16d9f8e
commit
15fe5ca737
|
@ -1,2 +1,2 @@
|
||||||
93377888ae89560ba6d3976e2762d3d4724c4dfd
|
6713332fddb796f5b14fcb6a7e5d36979676e4ab
|
||||||
|
|
||||||
|
|
|
@ -516,7 +516,7 @@ struct HloCompareAdaptor {
|
||||||
|
|
||||||
void PopulateLegalizeChloToHloPatterns(MLIRContext *context,
|
void PopulateLegalizeChloToHloPatterns(MLIRContext *context,
|
||||||
OwningRewritePatternList *patterns) {
|
OwningRewritePatternList *patterns) {
|
||||||
populateWithGenerated(context, patterns);
|
populateWithGenerated(context, *patterns);
|
||||||
|
|
||||||
// Instantiate conversion templates for conforming binary elementwise ops
|
// Instantiate conversion templates for conforming binary elementwise ops
|
||||||
// that do not have different dtypes between operands and results and do
|
// that do not have different dtypes between operands and results and do
|
||||||
|
|
|
@ -464,9 +464,9 @@ struct HloLegalizeToLhlo
|
||||||
|
|
||||||
populateHLOToLHLOConversionPattern(&context, &converter, &patterns);
|
populateHLOToLHLOConversionPattern(&context, &converter, &patterns);
|
||||||
populateWithBufferAssignmentOpConversionPatterns<
|
populateWithBufferAssignmentOpConversionPatterns<
|
||||||
mlir::ReturnOp, mlir::ReturnOp, lmhlo::CopyOp>(&context, &converter,
|
mlir::ReturnOp, mlir::ReturnOp, lmhlo::CopyOp>(&context, converter,
|
||||||
&patterns);
|
patterns);
|
||||||
populateShapeTypeConversionPatterns(&context, &converter, &patterns);
|
populateShapeTypeConversionPatterns(&context, converter, patterns);
|
||||||
if (failed(applyPartialConversion(getOperation(), target, patterns)))
|
if (failed(applyPartialConversion(getOperation(), target, patterns)))
|
||||||
signalPassFailure();
|
signalPassFailure();
|
||||||
}
|
}
|
||||||
|
@ -531,7 +531,7 @@ void populateHLOToLHLOConversionPattern(
|
||||||
HloToLhloReturnOpConverter,
|
HloToLhloReturnOpConverter,
|
||||||
HloToLhloTensorLoadOpConverter,
|
HloToLhloTensorLoadOpConverter,
|
||||||
HloToLhloTensorStoreOpConverter
|
HloToLhloTensorStoreOpConverter
|
||||||
>(context, converter);
|
>(context, *converter);
|
||||||
// clang-format on
|
// clang-format on
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ std::unique_ptr<mlir::OperationPass<mlir::FuncOp>> createLegalizeToStdPass() {
|
||||||
|
|
||||||
void PopulateMhloToStdPatterns(OwningRewritePatternList *patterns,
|
void PopulateMhloToStdPatterns(OwningRewritePatternList *patterns,
|
||||||
mlir::MLIRContext *ctx) {
|
mlir::MLIRContext *ctx) {
|
||||||
mlir::populateWithGenerated(ctx, patterns);
|
mlir::populateWithGenerated(ctx, *patterns);
|
||||||
patterns->insert<CompareFConvert, CompareIConvert, ConvertIotaOp>(ctx);
|
patterns->insert<CompareFConvert, CompareIConvert, ConvertIotaOp>(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace {
|
||||||
|
|
||||||
void PopulateComplexLoweringPatterns(MLIRContext* context,
|
void PopulateComplexLoweringPatterns(MLIRContext* context,
|
||||||
OwningRewritePatternList* patterns) {
|
OwningRewritePatternList* patterns) {
|
||||||
populateWithGenerated(context, patterns);
|
populateWithGenerated(context, *patterns);
|
||||||
}
|
}
|
||||||
} // end namespace mhlo
|
} // end namespace mhlo
|
||||||
} // end namespace mlir
|
} // end namespace mlir
|
||||||
|
|
Loading…
Reference in New Issue