[llvm] acb5ae4 - [ADT] Add LLVM_ABI annotations in IntegerInclusiveInterval (#176788)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 19 13:04:42 PST 2026
Author: Fabrice de Gans
Date: 2026-01-19T22:04:38+01:00
New Revision: acb5ae4de921dce9729dc3ba7c0a564dfddf9587
URL: https://github.com/llvm/llvm-project/commit/acb5ae4de921dce9729dc3ba7c0a564dfddf9587
DIFF: https://github.com/llvm/llvm-project/commit/acb5ae4de921dce9729dc3ba7c0a564dfddf9587.diff
LOG: [ADT] Add LLVM_ABI annotations in IntegerInclusiveInterval (#176788)
This is needed to build LLVM as a DLL on Windows.
This effort is tracked in #109483.
Added:
Modified:
llvm/include/llvm/Support/IntegerInclusiveInterval.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/IntegerInclusiveInterval.h b/llvm/include/llvm/Support/IntegerInclusiveInterval.h
index f5472b9122af5..c85141bddf0a9 100644
--- a/llvm/include/llvm/Support/IntegerInclusiveInterval.h
+++ b/llvm/include/llvm/Support/IntegerInclusiveInterval.h
@@ -87,10 +87,12 @@ using IntervalList = SmallVector<IntegerInclusiveInterval, 8>;
/// \param Separator The separator character to use (',' or ':').
/// \returns Expected<IntervalList> containing the parsed intervals on success,
/// or an Error on failure.
+LLVM_ABI
Expected<IntervalList> parseIntervals(StringRef IntervalStr,
char Separator = ',');
/// Check if a value is contained in any of the intervals.
+LLVM_ABI
bool contains(ArrayRef<IntegerInclusiveInterval> Intervals, int64_t Value);
/// Print intervals to output stream.
@@ -99,12 +101,14 @@ bool contains(ArrayRef<IntegerInclusiveInterval> Intervals, int64_t Value);
/// \param Separator The separator character to use between intervals (i.e. ','
/// or
/// ':').
+LLVM_ABI
void printIntervals(raw_ostream &OS,
ArrayRef<IntegerInclusiveInterval> Intervals,
char Separator = ',');
/// Merge adjacent/consecutive intervals into single intervals.
/// Example: [1-3, 4-6, 8-10] -> [1-6, 8-10].
+LLVM_ABI
IntervalList
mergeAdjacentIntervals(ArrayRef<IntegerInclusiveInterval> Intervals);
More information about the llvm-commits
mailing list