-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Add SYCL-specific address spaces fixer pass.
Finds all addrspacecasts from named AS to private AS and changes these casts to cast from named AS to generic AS. Also replaces all calls and functions with new types according with new addrspacecasts. Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
- Loading branch information
1 parent
79a49d6
commit 65f8c24
Showing
11 changed files
with
1,113 additions
and
0 deletions.
There are no files selected for viewing
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,26 @@ | ||
//===- ASFixer.h - SYCL address spaces fixer pass -------------------------===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// SYCL address spaces fixer pass | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_SYCL_ASFIXER_H | ||
#define LLVM_SYCL_ASFIXER_H | ||
|
||
#include "llvm/IR/Module.h" | ||
#include "llvm/Pass.h" | ||
|
||
namespace llvm { | ||
|
||
ModulePass *createASFixerPass(); | ||
|
||
} | ||
|
||
#endif |
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.