|
1 |
| -//===-- CGBuiltin.h - LLVM CodeGen wrappers for llvm::Value* ------*- C++ -*-===// |
| 1 | +//===------ CGBuiltin.h - Emit LLVM Code for builtins ---------------------===// |
2 | 2 | //
|
3 | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
4 | 4 | // See https://llvm.org/LICENSE.txt for license information.
|
|
11 | 11 |
|
12 | 12 | #include "CodeGenFunction.h"
|
13 | 13 |
|
14 |
| -using namespace clang; |
15 |
| -using namespace CodeGen; |
16 |
| -using namespace llvm; |
| 14 | +using llvm::Value; |
| 15 | +using llvm::Function; |
| 16 | +using llvm::AtomicOrdering; |
| 17 | +using clang::SmallVector; |
| 18 | +using clang::CallExpr; |
| 19 | +using clang::QualType; |
| 20 | +using clang::CodeGen::Address; |
| 21 | +using clang::CodeGen::CodeGenFunction; |
17 | 22 |
|
18 | 23 | // Many of MSVC builtins are on x64, ARM and AArch64; to avoid repeating code,
|
19 | 24 | // we handle them here.
|
20 |
| -enum class CodeGenFunction::MSVCIntrin { |
| 25 | +enum class clang::CodeGen::CodeGenFunction::MSVCIntrin { |
21 | 26 | _BitScanForward,
|
22 | 27 | _BitScanReverse,
|
23 | 28 | _InterlockedAnd,
|
@@ -64,10 +69,10 @@ enum class CodeGenFunction::MSVCIntrin {
|
64 | 69 | // matching the argument type. It is assumed that only the first argument is
|
65 | 70 | // overloaded.
|
66 | 71 | template <unsigned N>
|
67 |
| -static Value *emitBuiltinWithOneOverloadedType(CodeGenFunction &CGF, |
68 |
| - const CallExpr *E, |
69 |
| - unsigned IntrinsicID, |
70 |
| - llvm::StringRef Name = "") { |
| 72 | +Value *emitBuiltinWithOneOverloadedType(CodeGenFunction &CGF, |
| 73 | + const CallExpr *E, |
| 74 | + unsigned IntrinsicID, |
| 75 | + llvm::StringRef Name = "") { |
71 | 76 | static_assert(N, "expect non-empty argument");
|
72 | 77 | SmallVector<Value *, N> Args;
|
73 | 78 | for (unsigned I = 0; I < N; ++I)
|
|
0 commit comments