OLD | NEW |
(Empty) | |
| 1 //===-- llvm/IR/NaClAsm.h - NaCl Assembly Handling --------------*- C++ -*-===// |
| 2 // |
| 3 // The LLVM Compiler Infrastructure |
| 4 // |
| 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. |
| 7 // |
| 8 //===----------------------------------------------------------------------===// |
| 9 // |
| 10 // This file provides utilities for NaCl's handling of assembly. |
| 11 // |
| 12 //===----------------------------------------------------------------------===// |
| 13 |
| 14 #ifndef LLVM_IR_NACL_ASSEMBLY_H |
| 15 #define LLVM_IR_NACL_ASSEMBLY_H |
| 16 |
| 17 #include "llvm/IR/Instruction.h" |
| 18 |
| 19 namespace llvm { |
| 20 |
| 21 namespace NaCl { |
| 22 |
| 23 /// Returns true if the Instruction corresponds to ``asm("":::"memory")``, |
| 24 /// This is often used as a compiler barrier and NaCl tries to handle it |
| 25 /// gracefully. |
| 26 bool isAsmMemory(const Instruction *I); |
| 27 |
| 28 } // End NaCl namespace |
| 29 |
| 30 } // End llvm namespace |
| 31 |
| 32 #endif |
OLD | NEW |