Home | History | Annotate | Download | only in Basic

Lines Matching refs:Ext

35   bool isKnown(llvm::StringRef Ext) const {
36 return OptMap.find(Ext) != OptMap.end();
39 bool isEnabled(llvm::StringRef Ext) const {
40 return OptMap.find(Ext)->second.Enabled;
45 bool isSupported(llvm::StringRef Ext, unsigned CLVer) const {
46 auto I = OptMap.find(Ext)->getValue();
52 bool isSupportedCore(llvm::StringRef Ext, unsigned CLVer) const {
53 auto I = OptMap.find(Ext)->getValue();
60 bool isSupportedExtension(llvm::StringRef Ext, unsigned CLVer) const {
61 auto I = OptMap.find(Ext)->getValue();
66 void enable(llvm::StringRef Ext, bool V = true) {
67 OptMap[Ext].Enabled = V;
71 /// \param Ext name of the extension optionally prefixed with
73 /// \param V used when \p Ext is not prefixed by '+' or '-'
74 void support(llvm::StringRef Ext, bool V = true) {
75 assert(!Ext.empty() && "Extension is empty.");
77 switch (Ext[0]) {
80 Ext = Ext.drop_front();
84 Ext = Ext.drop_front();
88 if (Ext.equals("all")) {
92 OptMap[Ext].Supported = V;
96 #define OPENCLEXT_INTERNAL(Ext, AvailVer, CoreVer) \
97 OptMap[#Ext].Avail = AvailVer; \
98 OptMap[#Ext].Core = CoreVer;