Allow vectorization of intrinsics such as powi,cttz and ctlz in Loop and SLP Vectorizer.
[oota-llvm.git] / include / llvm / PassRegistry.h
index 5d89c492218d8e7dab03ab2e62bd6c59baa9cd52..7f2a01426e0dba8adbfbbcb7d21b5bcd86b96aa4 100644 (file)
@@ -17,7 +17,9 @@
 #ifndef LLVM_PASSREGISTRY_H
 #define LLVM_PASSREGISTRY_H
 
+#include "llvm-c/Core.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/Support/CBindingWrapping.h"
 
 namespace llvm {
 
@@ -35,7 +37,7 @@ class PassRegistry {
   void *getImpl() const;
    
 public:
-  PassRegistry() : pImpl(0) { }
+  PassRegistry() : pImpl(nullptr) { }
   ~PassRegistry();
   
   /// getPassRegistry - Access the global registry object, which is 
@@ -79,6 +81,9 @@ public:
   void removeRegistrationListener(PassRegistrationListener *L);
 };
 
+// Create wrappers for C Binding types (see CBindingWrapping.h).
+DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef)
+
 }
 
 #endif