Skip to content

Merge google -> main - #5499

Merged
rsuderman merged 8 commits into
iree-org:mainfrom
rsuderman:google-to-main
Apr 16, 2021
Merged

rsuderman merged 8 commits into
iree-org:mainfrom
rsuderman:google-to-main

Conversation

@rsuderman

Copy link
Copy Markdown
Collaborator

iree-copybara-bot and others added 8 commits April 15, 2021 21:04
Updates LLVM usage to match
[f28cb01be071](llvm/llvm-project@f28cb01be071)

PiperOrigin-RevId: 368712932
Updates LLVM usage to match
[3f97c66b0040](llvm/llvm-project@3f97c66b0040)

PiperOrigin-RevId: 368763888
Updates LLVM usage to match
[3bc88eb3924f](llvm/llvm-project@3bc88eb3924f)

PiperOrigin-RevId: 368828718
Updates LLVM usage to match
[bb907b26e2bf](llvm/llvm-project@bb907b26e2bf)

PiperOrigin-RevId: 368850216
Updates LLVM dependencies to match
[bb907b26e2bf](llvm/llvm-project@bb907b26e2bf).
- llvm-bazel to
  [aa01c9cebca8](google/llvm-bazel@aa01c9cebca8)
- TensorFlow to
  [9a528751735b](tensorflow/tensorflow@9a528751735b)
- MLIR-HLO to
  [d938913704df](tensorflow/mlir-hlo@d938913704df)

`./scripts/git/update_to_llvm_syncpoint.py `

PiperOrigin-RevId: 368893575
Comment thread iree/task/task.c
Comment on lines -290 to +291
#if defined(IREE_PTR_SIZE_32)
return (uint32_t)ptr;
#elif defined(IREE_PTR_SIZE_64)
return (uint32_t)ptr ^ (uint32_t)(ptr >> 32);
#else
#error Unknown pointer size
#endif
uint64_t ptr64 = ptr;
return (uint32_t)ptr64 ^ (uint32_t)(ptr64 >> 32);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert of #5490 / replacement with uint64_t version intended?

@GMNGeoffrey GMNGeoffrey Apr 16, 2021 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes #5490 didn't seem to fix the problem. It was still complaining about shifting by too much, which means that whatever this macro was detecting, it wasn't working as intended here, so we needed to do something like this anyway, at which point I suggested just dropping the macro, since this should work on any system that supports uint64_t (not technically required by the standard, but already assumed throughout the IREE runtime)

Comment thread iree/task/task.c
Comment on lines -290 to +291
#if defined(IREE_PTR_SIZE_32)
return (uint32_t)ptr;
#elif defined(IREE_PTR_SIZE_64)
return (uint32_t)ptr ^ (uint32_t)(ptr >> 32);
#else
#error Unknown pointer size
#endif
uint64_t ptr64 = ptr;
return (uint32_t)ptr64 ^ (uint32_t)(ptr64 >> 32);

@GMNGeoffrey GMNGeoffrey Apr 16, 2021 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes #5490 didn't seem to fix the problem. It was still complaining about shifting by too much, which means that whatever this macro was detecting, it wasn't working as intended here, so we needed to do something like this anyway, at which point I suggested just dropping the macro, since this should work on any system that supports uint64_t (not technically required by the standard, but already assumed throughout the IREE runtime)

@rsuderman
rsuderman merged commit c9f2742 into iree-org:main Apr 16, 2021
@rsuderman rsuderman mentioned this pull request Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants