[llvm] [InferAs] Infer the address space of inttoptr (PR #175406)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 18 05:33:38 PST 2026
github-actions[bot] wrote:
<!--LLVM IDS CHECK COMMENT-->
:warning: LLVM ABI annotation checker, ids-check found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git diff origin/main HEAD -- 'llvm/include/llvm/**/*.h' 'llvm/include/llvm-c/**/*.h' 'llvm/include/llvm/Demangle/**/*.h'
Then run idt on the changed files with appropriate --export-macro and --include-header flags.
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from ids-check here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Transforms/Scalar/InferAddressSpacesPrepare.h b/llvm/include/llvm/Transforms/Scalar/InferAddressSpacesPrepare.h
index 961b0cfbb..5c85cdf8a 100644
--- a/llvm/include/llvm/Transforms/Scalar/InferAddressSpacesPrepare.h
+++ b/llvm/include/llvm/Transforms/Scalar/InferAddressSpacesPrepare.h
@@ -9,14 +9,15 @@
#ifndef LLVM_TRANSFORMS_SCALAR_INFER_ADDRESSSPACES_PREPARE_H
#define LLVM_TRANSFORMS_SCALAR_INFER_ADDRESSSPACES_PREPARE_H
+#include "llvm/Support/Compiler.h"
#include "llvm/IR/PassManager.h"
namespace llvm {
struct InferAddressSpacesPreparePass
: PassInfoMixin<InferAddressSpacesPreparePass> {
- InferAddressSpacesPreparePass();
- InferAddressSpacesPreparePass(unsigned AddressSpace);
- PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
+ LLVM_ABI InferAddressSpacesPreparePass();
+ LLVM_ABI InferAddressSpacesPreparePass(unsigned AddressSpace);
+ LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
private:
unsigned FlatAddrSpace = 0;
``````````
</details>
https://github.com/llvm/llvm-project/pull/175406
More information about the llvm-commits
mailing list