Integrate LLVM at llvm/llvm-project@c907681b07
Updates LLVM usage to match [c907681b077c](https://github.com/llvm/llvm-project/commit/c907681b077c) PiperOrigin-RevId: 360891677
This commit is contained in:
		
							parent
							
								
									62b357b601
								
							
						
					
					
						commit
						e5a6706260
					
				|  | @ -15,9 +15,9 @@ | |||
| 
 | ||||
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||||
| 
 | ||||
| LLVM_COMMIT = "5d7e0a23c6f2051d4caf8f8c8821790c40b584be" | ||||
| LLVM_COMMIT = "c907681b077c6acf95c3ddca6611639c29559e40" | ||||
| 
 | ||||
| LLVM_SHA256 = "dc100f5eddb35b694454ecc8cbf654b238f2e2684784d33d40536500297e9212" | ||||
| LLVM_SHA256 = "2929f1730e9ba4fea489400d81e5da21a4e79c94fea9dd3fd12e042350ff19ea" | ||||
| 
 | ||||
| LLVM_BAZEL_TAG = "llvm-project-{commit}".format(commit = LLVM_COMMIT) | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,2 +1,2 @@ | |||
| 5d7e0a23c6f2051d4caf8f8c8821790c40b584be | ||||
| c907681b077c6acf95c3ddca6611639c29559e40 | ||||
| 
 | ||||
|  |  | |||
|  | @ -90,7 +90,7 @@ class HLOClient_BroadcastBinaryElementwiseOp< | |||
|   ); | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "Value":$left, "Value":$right, | ||||
|     OpBuilder<(ins "Value":$left, "Value":$right, | ||||
|       "DenseIntElementsAttr":$broadcast_dimensions)>]; | ||||
| 
 | ||||
|   let results = (outs HLO_Tensor); | ||||
|  | @ -673,7 +673,7 @@ def HLOClient_BroadcastCompareOp : HLOClient_BroadcastBinaryElementwiseOp< | |||
|   let results = (outs HLO_PredTensor); | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "Value":$lhs, "Value":$rhs, | ||||
|     OpBuilder<(ins "Value":$lhs, "Value":$rhs, | ||||
|       "DenseIntElementsAttr":$broadcast_dimensions, | ||||
|       "StringAttr":$comparison_direction, CArg<"StringAttr", "{}">:$compare_type)>]; | ||||
| } | ||||
|  |  | |||
|  | @ -61,7 +61,7 @@ def HLO_ConstOp : HLO_Op<"constant", | |||
|   ); | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "Attribute":$value)>]; | ||||
|     OpBuilder<(ins "Attribute":$value)>]; | ||||
| 
 | ||||
|   let assemblyFormat = "attr-dict $value"; | ||||
| 
 | ||||
|  | @ -163,7 +163,7 @@ def HLO_ConvertOp : HLO_UnaryElementwiseOp<"convert", | |||
|     [NoSideEffect, SameOperandsAndResultShape], HLO_Tensor>, | ||||
|     BASE_HLO_ConvertOp { | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "Value":$operand, "Type":$result_element_ty)>]; | ||||
|     OpBuilder<(ins "Value":$operand, "Type":$result_element_ty)>]; | ||||
| 
 | ||||
|   let hasFolder = 1; | ||||
| 
 | ||||
|  | @ -624,7 +624,7 @@ def HLO_ReduceOp: HLO_Op<"reduce", [ | |||
|   let results = (outs Variadic<HLO_TensorOrTuple>); | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "ValueRange":$operands, "ValueRange":$init_values, | ||||
|     OpBuilder<(ins "ValueRange":$operands, "ValueRange":$init_values, | ||||
|       "DenseIntElementsAttr":$dimensions)>]; | ||||
| 
 | ||||
|   let extraClassDeclaration = [{ | ||||
|  | @ -662,7 +662,7 @@ def HLO_GetTupleElementOp: HLO_Op<"get_tuple_element", [NoSideEffect]>, BASE_HLO | |||
|   let hasFolder = 1; | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "Value":$value, "int32_t":$index)>]; | ||||
|     OpBuilder<(ins "Value":$value, "int32_t":$index)>]; | ||||
| } | ||||
| 
 | ||||
| def HLO_TupleOp : HLO_Op<"tuple", [NoSideEffect]>, BASE_HLO_TupleOp { | ||||
|  | @ -670,7 +670,7 @@ def HLO_TupleOp : HLO_Op<"tuple", [NoSideEffect]>, BASE_HLO_TupleOp { | |||
|   let results = (outs HLO_Tuple); | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "ValueRange":$values)>]; | ||||
|     OpBuilder<(ins "ValueRange":$values)>]; | ||||
| 
 | ||||
|   let hasCanonicalizer = 1; | ||||
| } | ||||
|  | @ -690,7 +690,7 @@ def HLO_CompareOp: HLO_Op<"compare", [NoSideEffect, SameTypeOperands, | |||
|   let hasFolder = 1; | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "Value":$lhs, "Value":$rhs, | ||||
|     OpBuilder<(ins "Value":$lhs, "Value":$rhs, | ||||
|       "StringAttr":$comparison_direction, CArg<"StringAttr", "{}">:$compare_type)>, | ||||
|   ]; | ||||
| 
 | ||||
|  | @ -889,7 +889,7 @@ def HLO_ConcatenateOp : HLO_Op<"concatenate", | |||
|   let hasFolder = 1; | ||||
| 
 | ||||
|   let extraClassDeclaration = [{ | ||||
|     static bool isCompatibleReturnTypes(ArrayRef<Type> l, ArrayRef<Type> r) { | ||||
|     static bool isCompatibleReturnTypes(TypeRange l, TypeRange r) { | ||||
|       return succeeded(mlir::verifyCompatibleShapes(l, r)); | ||||
|     } | ||||
|   }]; | ||||
|  | @ -1170,7 +1170,7 @@ def HLO_SortOp : HLO_Op<"sort", [RecursiveSideEffects, | |||
|   let regions = (region SizedRegion<1>:$comparator); | ||||
| 
 | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "ValueRange":$operands, CArg<"int64_t", "-1">:$dimension, | ||||
|     OpBuilder<(ins "ValueRange":$operands, CArg<"int64_t", "-1">:$dimension, | ||||
|       CArg<"bool", "false">:$is_stable)>]; | ||||
| 
 | ||||
|   // TODO(b/129422361): SortOp has special conversion logic to HLO. | ||||
|  |  | |||
|  | @ -691,7 +691,7 @@ def FusionOp : LHLO_Op<"fusion", [SingleBlockImplicitTerminator<"TerminatorOp">] | |||
| 
 | ||||
|   let skipDefaultBuilders = 1; | ||||
|   let builders = [ | ||||
|      OpBuilderDAG<(ins CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)> | ||||
|      OpBuilder<(ins CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)> | ||||
|   ]; | ||||
| 
 | ||||
|   let extraClassDeclaration = [{ | ||||
|  | @ -740,7 +740,7 @@ def TerminatorOp : | |||
|     Terminator operation for the LHLO dialect. | ||||
|   }]; | ||||
|   let builders = [ | ||||
|     OpBuilderDAG<(ins "ValueRange":$operands), | ||||
|     OpBuilder<(ins "ValueRange":$operands), | ||||
|     [{ build($_builder, $_state, llvm::None, operands, llvm::None); }]>]; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue