LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
include
llvm
MC
MCParser
AsmCond.h
Go to the documentation of this file.
1
//===- AsmCond.h - Assembly file conditional assembly ----------*- 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
#ifndef LLVM_MC_MCPARSER_ASMCOND_H
11
#define LLVM_MC_MCPARSER_ASMCOND_H
12
13
namespace
llvm {
14
15
/// AsmCond - Class to support conditional assembly
16
///
17
/// The conditional assembly feature (.if, .else, .elseif and .endif) is
18
/// implemented with AsmCond that tells us what we are in the middle of
19
/// processing. Ignore can be either true or false. When true we are ignoring
20
/// the block of code in the middle of a conditional.
21
22
class
AsmCond
{
23
public
:
24
enum
ConditionalAssemblyType
{
25
NoCond
,
// no conditional is being processed
26
IfCond
,
// inside if conditional
27
ElseIfCond
,
// inside elseif conditional
28
ElseCond
// inside else conditional
29
};
30
31
ConditionalAssemblyType
TheCond
;
32
bool
CondMet
;
33
bool
Ignore
;
34
35
AsmCond
() :
TheCond
(
NoCond
),
CondMet
(
false
),
Ignore
(
false
) {}
36
};
37
38
}
// end namespace llvm
39
40
#endif
llvm::AsmCond::ElseIfCond
Definition:
AsmCond.h:27
llvm::AsmCond::NoCond
Definition:
AsmCond.h:25
llvm::AsmCond::ConditionalAssemblyType
ConditionalAssemblyType
Definition:
AsmCond.h:24
llvm::AsmCond::ElseCond
Definition:
AsmCond.h:28
llvm::AsmCond
AsmCond - Class to support conditional assembly.
Definition:
AsmCond.h:22
false
Function Alias Analysis false
Definition:
AliasAnalysis.cpp:586
llvm::AsmCond::IfCond
Definition:
AsmCond.h:26
llvm::AsmCond::Ignore
bool Ignore
Definition:
AsmCond.h:33
llvm::AsmCond::AsmCond
AsmCond()
Definition:
AsmCond.h:35
llvm::AsmCond::CondMet
bool CondMet
Definition:
AsmCond.h:32
llvm::AsmCond::TheCond
ConditionalAssemblyType TheCond
Definition:
AsmCond.h:31
Generated on Wed Mar 8 2017 17:06:15 for LLVM by
1.8.6