File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,8 @@ class GIMatchTableExecutor {
721
721
// - Unchecked execution, assumes no error.
722
722
// - Fast common case handling (1 byte values).
723
723
LLVM_ATTRIBUTE_ALWAYS_INLINE static uint64_t
724
- fastDecodeULEB128 (const uint8_t *MatchTable, uint64_t &CurrentIdx) {
724
+ fastDecodeULEB128 (const uint8_t *LLVM_ATTRIBUTE_RESTRICT MatchTable,
725
+ uint64_t &CurrentIdx) {
725
726
uint64_t Value = MatchTable[CurrentIdx++];
726
727
if (LLVM_UNLIKELY (Value >= 128 )) {
727
728
Value &= 0x7f ;
Original file line number Diff line number Diff line change 278
278
#define LLVM_ATTRIBUTE_RETURNS_NONNULL
279
279
#endif
280
280
281
+ // / LLVM_ATTRIBUTE_RESTRICT- Annotates a pointer to tell the compiler that
282
+ // / it is not aliased in the current scope.
283
+ #if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
284
+ #define LLVM_ATTRIBUTE_RESTRICT __restrict
285
+ #else
286
+ #define LLVM_ATTRIBUTE_RESTRICT
287
+ #endif
288
+
281
289
// / \macro LLVM_ATTRIBUTE_RETURNS_NOALIAS Used to mark a function as returning a
282
290
// / pointer that does not alias any other valid pointer.
283
291
#ifdef __GNUC__
You can’t perform that action at this time.
0 commit comments