Repository navigation
Merge google -> main - #5499
Merge google -> main#5499
Conversation
rsuderman
commented
Apr 16, 2021
- b0e2852 Merge pull request Merge main -> google #5491 from rsuderman:main-to-google
- 3d9cd12 Synchronize submodules with LLVM at llvm/llvm-project@bb907b26e2bf
- d23d2c5 Synchronize submodules with LLVM at llvm/llvm-project@bb907b26e2bf
- 7067b1e Integrate LLVM at llvm/llvm-project@bb907b26e2bf
- efd715f Integrate LLVM at llvm/llvm-project@3bc88eb3924f
- 8012dcd Integrate LLVM at llvm/llvm-project@3f97c66b0040
- e8f0247 Merge pull request Merge main -> google #5466 from rsuderman:main-to-google
- 99ea45f Integrate LLVM at llvm/llvm-project@f28cb01be071
Updates LLVM usage to match [f28cb01be071](llvm/llvm-project@f28cb01be071) PiperOrigin-RevId: 368712932
PiperOrigin-RevId: 368716620
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
PiperOrigin-RevId: 368929345
| #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); |
There was a problem hiding this comment.
Revert of #5490 / replacement with uint64_t version intended?
There was a problem hiding this comment.
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)
| #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); |
There was a problem hiding this comment.
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)