diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 09:53:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 09:53:06 +0000 |
commit | 688b55b436b4a3a036f0827dc484b5f219ace1a3 (patch) | |
tree | a19ccaa5a12483dc2aa18e5075bef108716eab32 /include/llvm/ADT/Triple.h | |
parent | 2b1d3d76d78353d3d7c793d437c6ee355dd0f9ab (diff) | |
download | external_llvm-688b55b436b4a3a036f0827dc484b5f219ace1a3.zip external_llvm-688b55b436b4a3a036f0827dc484b5f219ace1a3.tar.gz external_llvm-688b55b436b4a3a036f0827dc484b5f219ace1a3.tar.bz2 |
Add llvm::Triple::getArchTypePrefix for getting the intrinsic prefix for an
identifier architecture.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/Triple.h')
-rw-r--r-- | include/llvm/ADT/Triple.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 106084d..46bf900 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -238,6 +238,14 @@ public: /// architecture. static const char *getArchTypeName(ArchType Kind); + /// getArchTypePrefix - Get the "prefix" canonical name for the \arg Kind + /// architecture. This is the prefix used by the architecture specific + /// builtins, and is suitable for passing to \see + /// Intrinsic::getIntrinsicForGCCBuiltin(). + /// + /// \return - The architecture prefix, or 0 if none is defined. + static const char *getArchTypePrefix(ArchType Kind); + /// getVendorTypeName - Get the canonical name for the \arg Kind /// vendor. static const char *getVendorTypeName(VendorType Kind); |