aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-10-06 16:40:45 +0000
committerErich Keane <erich.keane@intel.com>2017-10-06 16:40:45 +0000
commit1fe643a6d766ee85e528681d42d5341859712a3e (patch)
treecd5eb691f55559195e65652a9954cdd9f54962b5 /clang/lib/CodeGen/CodeGenFunction.h
parentcab496d3a9a9f934823960134e5cbbf1db22088a (diff)
downloadllvm-1fe643a6d766ee85e528681d42d5341859712a3e.zip
llvm-1fe643a6d766ee85e528681d42d5341859712a3e.tar.gz
llvm-1fe643a6d766ee85e528681d42d5341859712a3e.tar.bz2
Split X86::BI__builtin_cpu_init handling into own function[NFC]
The Cpu Init functionality is required for the target attribute, so this patch simply splits it out into its own function, exactly like CpuIs and CpuSupports. llvm-svn: 315075
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 68be87f..3ec3466 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -3901,6 +3901,7 @@ private:
llvm::Value *EmitX86CpuIs(StringRef CPUStr);
llvm::Value *EmitX86CpuSupports(const CallExpr *E);
llvm::Value *EmitX86CpuSupports(ArrayRef<StringRef> FeatureStrs);
+ llvm::Value *EmitX86CpuInit();
};
/// Helper class with most of the code for saving a value for a