"Fossies" - the Fresh Open Source Software Archive

Member "pocl-1.8/lib/llvmopencl/AllocasToEntry.h" (12 Oct 2021, 1627 Bytes) of package /linux/misc/pocl-1.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "AllocasToEntry.h" see the Fossies "Dox" file reference documentation.

    1 // Header for AllocasToEntry, an LLVM pass to move allocas to the function 
    2 // entry node.
    3 // 
    4 // Copyright (c) 2013 Pekka Jääskeläinen / TUT
    5 // 
    6 // Permission is hereby granted, free of charge, to any person obtaining a copy
    7 // of this software and associated documentation files (the "Software"), to deal
    8 // in the Software without restriction, including without limitation the rights
    9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   10 // copies of the Software, and to permit persons to whom the Software is
   11 // furnished to do so, subject to the following conditions:
   12 // 
   13 // The above copyright notice and this permission notice shall be included in
   14 // all copies or substantial portions of the Software.
   15 // 
   16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   22 // THE SOFTWARE.
   23 
   24 #ifndef _POCL_ALLOCAS_TO_ENTRY_H
   25 #define _POCL_ALLOCAS_TO_ENTRY_H
   26 
   27 #include "config.h"
   28 
   29 #include "llvm/IR/Function.h"
   30 #include "llvm/Pass.h"
   31 #include "llvm/Support/CommandLine.h"
   32 
   33 namespace pocl {
   34   class AllocasToEntry : public llvm::FunctionPass {
   35   public:
   36     static char ID;
   37 
   38     AllocasToEntry();
   39     virtual ~AllocasToEntry() {};
   40     virtual bool runOnFunction(llvm::Function &F);
   41   };
   42 }
   43 
   44 #endif