summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/TargetInfo.h
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2019-03-25 20:54:00 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2019-03-25 20:54:00 +0000
commitec28a1dcefc335c1c90959086194a8a168fff35a (patch)
tree5a0237d48504d1399467865e356e4f250e254862 /clang/lib/CodeGen/TargetInfo.h
parent51809cbc98ce187608bd5f2c46d18c5ffb7b6031 (diff)
downloadbcm5719-llvm-ec28a1dcefc335c1c90959086194a8a168fff35a.tar.gz
bcm5719-llvm-ec28a1dcefc335c1c90959086194a8a168fff35a.zip
AMDGPU: Add support for cross address space synchronization scopes (clang)
Differential Revision: https://reviews.llvm.org/D59494 llvm-svn: 356947
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.h')
-rw-r--r--clang/lib/CodeGen/TargetInfo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.h b/clang/lib/CodeGen/TargetInfo.h
index 8a4154030ce..d7e9eee9c5b 100644
--- a/clang/lib/CodeGen/TargetInfo.h
+++ b/clang/lib/CodeGen/TargetInfo.h
@@ -268,8 +268,10 @@ public:
llvm::Type *DestTy) const;
/// Get the syncscope used in LLVM IR.
- virtual llvm::SyncScope::ID getLLVMSyncScopeID(SyncScope S,
- llvm::LLVMContext &C) const;
+ virtual llvm::SyncScope::ID getLLVMSyncScopeID(const LangOptions &LangOpts,
+ SyncScope Scope,
+ llvm::AtomicOrdering Ordering,
+ llvm::LLVMContext &Ctx) const;
/// Interface class for filling custom fields of a block literal for OpenCL.
class TargetOpenCLBlockHelper {
OpenPOWER on IntegriCloud