Integrate LLVM at llvm/llvm-project@7f086d74c3
Updates LLVM usage to match [7f086d74c347](https://github.com/llvm/llvm-project/commit/7f086d74c347) PiperOrigin-RevId: 360434104 Change-Id: Id94cea4b73a06ace336d21446e6c0a64cf45271e
This commit is contained in:
parent
df026d24da
commit
613a751b1b
@ -607,8 +607,9 @@ struct HloLegalizeToLhlo
|
||||
populateHLOToLHLOConversionPattern(&context, &converter, &patterns);
|
||||
populateFuncOpTypeConversionPattern(patterns, &context, converter);
|
||||
populateCallOpTypeConversionPattern(patterns, &context, converter);
|
||||
populateBranchOpInterfaceAndReturnOpTypeConversionPattern(
|
||||
patterns, &context, converter);
|
||||
populateBranchOpInterfaceTypeConversionPattern(patterns, &context,
|
||||
converter);
|
||||
populateReturnOpTypeConversionPattern(patterns, &context, converter);
|
||||
populateEliminateBufferizeMaterializationsPatterns(&context, converter,
|
||||
patterns);
|
||||
|
||||
|
@ -125,8 +125,9 @@ struct HloBufferizePass : public HloBufferizePassBase<HloBufferizePass> {
|
||||
&context, &converter, &patterns, /*insert_copy=*/false);
|
||||
populateFuncOpTypeConversionPattern(patterns, &context, converter);
|
||||
populateCallOpTypeConversionPattern(patterns, &context, converter);
|
||||
populateBranchOpInterfaceAndReturnOpTypeConversionPattern(
|
||||
patterns, &context, converter);
|
||||
populateBranchOpInterfaceTypeConversionPattern(patterns, &context,
|
||||
converter);
|
||||
populateReturnOpTypeConversionPattern(patterns, &context, converter);
|
||||
|
||||
// Configure legality and structural patterns.
|
||||
populateBufferizeMaterializationLegality(target);
|
||||
|
@ -73,12 +73,12 @@ void EmitPrint(Operation* op, Liveness& liveness, OpBuilder* b) {
|
||||
element_type = b->getI64Type();
|
||||
memref_type = MemRefType::get(memref_type.getShape(), element_type,
|
||||
memref_type.getAffineMaps(),
|
||||
memref_type.getMemorySpace());
|
||||
memref_type.getMemorySpaceAsInt());
|
||||
memref = b->create<IndexCastOp>(loc, memref, memref_type);
|
||||
}
|
||||
|
||||
auto unranked_type =
|
||||
UnrankedMemRefType::get(element_type, memref_type.getMemorySpace());
|
||||
UnrankedMemRefType::get(element_type, memref_type.getMemorySpaceAsInt());
|
||||
Value unranked_memref = b->create<MemRefCastOp>(loc, memref, unranked_type);
|
||||
|
||||
if (element_type.isF32()) {
|
||||
|
@ -356,7 +356,7 @@ class NullMemRefOpConverter : public ConvertOpToLLVMPattern<NullMemRefOp> {
|
||||
loc, getVoidPtrType(), sizes.front(), llvm::None);
|
||||
|
||||
// Populate underlying ranked descriptor.
|
||||
unsigned address_space = result_type.getMemorySpace();
|
||||
unsigned address_space = result_type.getMemorySpaceAsInt();
|
||||
Type elem_type = result_type.getElementType();
|
||||
Type llvm_elem_type = typeConverter->convertType(elem_type);
|
||||
Type elem_ptr_ptr_type = LLVM::LLVMPointerType::get(
|
||||
|
4
third_party/llvm/workspace.bzl
vendored
4
third_party/llvm/workspace.bzl
vendored
@ -4,8 +4,8 @@ load("//third_party:repo.bzl", "tf_http_archive")
|
||||
|
||||
def repo(name):
|
||||
"""Imports LLVM."""
|
||||
LLVM_COMMIT = "99c24f7aa8ccb84abde1672255439a2b2730ccc1"
|
||||
LLVM_SHA256 = "c031fbda3d8796fcc57aa16b54bfb39b8075b0f7a734273623da79e087d682ec"
|
||||
LLVM_COMMIT = "7f086d74c347750c1da619058eb5b3e79c2fae14"
|
||||
LLVM_SHA256 = "49590fd9975bab23a347859d945a8dcae1db35a1c32bd0d9387271a6b8058106"
|
||||
|
||||
tf_http_archive(
|
||||
name = name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user