-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeviceAsan][NFC] Code Restructure (#15843)
UR: oneapi-src/unified-runtime#2232 Code refactoring for implementing MemorySanitizer --------- Co-authored-by: Piotr Balcer <[email protected]>
- Loading branch information
Showing
7 changed files
with
119 additions
and
93 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//==-- sanitizer_defs.hpp - common macros shared by sanitizers ---==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
using uptr = uintptr_t; | ||
using u8 = uint8_t; | ||
using u16 = uint16_t; | ||
using u32 = uint32_t; | ||
using u64 = uint64_t; | ||
using s8 = int8_t; | ||
using s16 = int16_t; | ||
using s32 = int32_t; | ||
using s64 = int64_t; | ||
|
||
#define LIKELY(x) __builtin_expect(!!(x), 1) | ||
#define UNLIKELY(x) __builtin_expect(!!(x), 0) | ||
#define NORETURN __declspec(noreturn) |
This file contains 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
Oops, something went wrong.