[libc] fix stdbit include test when not all entrypoints are available#80323
Merged
nickdesaulniers merged 3 commits intollvm:mainfrom Feb 1, 2024
Merged
[libc] fix stdbit include test when not all entrypoints are available#80323nickdesaulniers merged 3 commits intollvm:mainfrom
nickdesaulniers merged 3 commits intollvm:mainfrom
Conversation
The intent of the test is to check that: 1. The type generic macros are defined. 2. Those macros dispatch to the correct underlying function. The issue is that when new functionality is added to our stdbit.h without rolling out the new entrypoint to all targets, this test breaks because our generated stdbit.h will not contain declarations for the underlying function. In that case, we should just declare the underlying functions first before including our generated stdbit.h which just contains declarations. A definition is a declaration, but redeclarations must match, hence the additions of noexcept and extern "C".
Member
|
@llvm/pr-subscribers-libc Author: Nick Desaulniers (nickdesaulniers) ChangesThe intent of the test is to check that:
The issue is that when new functionality is added to our stdbit.h without Full diff: https://github.com/llvm/llvm-project/pull/80323.diff 1 Files Affected:
|
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
lntue
approved these changes
Feb 1, 2024
ichaer
added a commit
to ichaer/llvm-project-onesided_lower_bound
that referenced
this pull request
Feb 2, 2024
* llvm/main: (500 commits) [docs] Add beginner-focused office hours (llvm#80308) [mlir][sparse] external entry method wrapper for sparse tensors (llvm#80326) [StackSlotColoring] Ignore non-spill objects in RemoveDeadStores. (llvm#80242) [libc][stdbit] fix return types (llvm#80337) Revert "[RISCV] Refine cost on Min/Max reduction" (llvm#80340) [TTI]Add support for strided loads/stores. [analyzer][HTMLRewriter] Cache partial rewrite results. (llvm#80220) [flang][openacc][openmp] Use #0 from hlfir.declare value when generating bound ops (llvm#80317) [AArch64][PAC] Expand blend(reg, imm) operation in aarch64-pauth pass (llvm#74729) [SHT_LLVM_BB_ADDR_MAP][llvm-readobj] Implements llvm-readobj handling for PGOAnalysisMap. (llvm#79520) [libc] add bazel support for most of unistd (llvm#80078) [clang-tidy] Remove enforcement of rule C.48 from cppcoreguidelines-prefer-member-init (llvm#80330) [OpenMP] Fix typo (NFC) (llvm#80332) [BOLT] Enable re-writing of Linux kernel binary (llvm#80228) [BOLT] Adjust section sizes based on file offsets (llvm#80226) [libc] fix stdbit include test when not all entrypoints are available (llvm#80323) [RISCV][GISel] RegBank select and instruction select for vector G_ADD, G_SUB (llvm#74114) [RISCV] Add srmcfg CSR from Ssqosid extension. (llvm#79914) [mlir][sparse] add sparsification options to pretty print and debug s… (llvm#80205) [RISCV][MC] MC layer support for the experimental zalasr extension (llvm#79911) ...
agozillon
pushed a commit
to agozillon/llvm-project
that referenced
this pull request
Feb 5, 2024
…llvm#80323) The intent of the test is to check that: 1. The type generic macros are defined. 2. Those macros dispatch to the correct underlying function. The issue is that when new functionality is added to our stdbit.h without rolling out the new entrypoint to all targets, this test breaks because our generated stdbit.h will not contain declarations for the underlying function. In that case, we should just declare the underlying functions first before including our generated stdbit.h which just contains declarations. A definition is a declaration, but redeclarations must match, hence the additions of noexcept and extern "C".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The intent of the test is to check that:
The issue is that when new functionality is added to our stdbit.h without
rolling out the new entrypoint to all targets, this test breaks because our
generated stdbit.h will not contain declarations for the underlying function.
In that case, we should just declare the underlying functions first before
including our generated stdbit.h which just contains declarations. A definition
is a declaration, but redeclarations must match, hence the additions of
noexcept and extern "C".