Updates LLVM usage to match
[8cdf4920c47d](https://github.com/llvm/llvm-project/commit/8cdf4920c47d)

PiperOrigin-RevId: 344933001
Change-Id: Id43319ca59dffc2e098487deff2095db167e7ba7
This commit is contained in:
A. Unique TensorFlower 2020-11-30 19:05:44 -08:00 committed by TensorFlower Gardener
parent bef3dd3aa4
commit cc6440591e
2 changed files with 6 additions and 4 deletions

View File

@ -169,7 +169,8 @@ llvm::Type* PrimitiveTypeToIrType(PrimitiveType element_type,
case F64:
return llvm::Type::getDoubleTy(module->getContext());
case C64: {
auto cplx_t = module->getTypeByName("complex64");
auto cplx_t =
llvm::StructType::getTypeByName(module->getContext(), "complex64");
if (cplx_t == nullptr) {
// C++ standard dictates the memory layout of std::complex is contiguous
// real followed by imaginary. C++11 section 26.4 [complex.numbers]:
@ -186,7 +187,8 @@ llvm::Type* PrimitiveTypeToIrType(PrimitiveType element_type,
return cplx_t;
}
case C128: {
auto cplx_t = module->getTypeByName("complex128");
auto cplx_t =
llvm::StructType::getTypeByName(module->getContext(), "complex128");
if (cplx_t == nullptr) {
return llvm::StructType::create(
{llvm::Type::getDoubleTy(module->getContext()),

View File

@ -686,8 +686,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
)
# Check out LLVM and MLIR from llvm-project.
LLVM_COMMIT = "750049d78b7421344882948cdf98fd233a557615"
LLVM_SHA256 = "c0f5c113e352fc24f5e6b31f5d0ac1c6b150585db7a5ea01db7c0d1475898145"
LLVM_COMMIT = "8cdf4920c47ddd3d60bdc3298f525512d483ce65"
LLVM_SHA256 = "c2e52cba15cfa88e416d7ecc449473e4b13db9bc1a14481f93595cdd06aa3977"
LLVM_URLS = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),
"https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),