HomeSort by relevance Sort by last modified time
    Searched refs:AI (Results 1 - 25 of 174) sorted by null

1 2 3 4 5 6 7

  /external/llvm/lib/Target/X86/
X86AtomicExpandPass.cpp 59 bool shouldExpandAtomicRMW(AtomicRMWInst *AI);
61 bool expandAtomicRMW(AtomicRMWInst *AI);
89 if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst))
90 MadeChange |= expandAtomicRMW(AI);
120 bool X86AtomicExpandPass::shouldExpandAtomicRMW(AtomicRMWInst *AI) {
124 if (needsCmpXchgNb(AI->getType()))
127 if (AI->getType()->getPrimitiveSizeInBits() > NativeWidth)
130 AtomicRMWInst::BinOp Op = AI->getOperation();
144 return !AI->use_empty();
164 if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst)
    [all...]
  /external/chromium_org/third_party/harfbuzz-ng/src/
hb-atomic-private.hh 63 #define hb_atomic_int_add(AI, V) InterlockedExchangeAdd (&(AI), (V))
79 #define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
96 #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V))
108 #define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V))
118 #define hb_atomic_int_add(AI, V) (((AI) += (V)) - (V)
    [all...]
  /external/harfbuzz_ng/src/
hb-atomic-private.hh 62 #define hb_atomic_int_add(AI, V) InterlockedExchangeAdd (&(AI), (V))
78 #define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
95 #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V))
107 #define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V))
117 #define hb_atomic_int_add(AI, V) (((AI) += (V)) - (V)
    [all...]
  /external/llvm/include/llvm/Transforms/Utils/
PromoteMemToReg.h 32 bool isAllocaPromotable(const AllocaInst *AI);
ASanStackFrameLayout.h 34 AllocaInst *AI; // The actual AllocaInst.
  /external/clang/include/clang/CodeGen/
CGFunctionInfo.h 101 auto AI = ABIArgInfo(Direct);
102 AI.setCoerceToType(T);
103 AI.setDirectOffset(Offset);
104 AI.setPaddingType(Padding);
105 return AI;
108 auto AI = getDirect(T);
109 AI.setInReg(true);
110 return AI;
113 auto AI = ABIArgInfo(Extend);
114 AI.setCoerceToType(T)
    [all...]
  /external/llvm/lib/Transforms/Utils/
InstructionNamer.cpp 35 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
36 AI != AE; ++AI)
37 if (!AI->hasName() && !AI->getType()->isVoidTy())
38 AI->setName("arg");
MetaRenamer.cpp 74 for (Module::alias_iterator AI = M.alias_begin(), AE = M.alias_end();
75 AI != AE; ++AI) {
76 StringRef Name = AI->getName();
80 AI->setName("alias");
119 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
120 AI != AE; ++AI)
121 if (!AI->getType()->isVoidTy())
122 AI->setName("arg")
    [all...]
PromoteMemoryToRegister.cpp 60 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
63 unsigned AS = AI->getType()->getAddressSpace();
66 for (const User *U : AI->users()) {
73 if (SI->getOperand(0) == AI)
74 return false; // Don't allow a store OF the AI, only INTO the AI.
128 void AnalyzeAlloca(AllocaInst *AI) {
134 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) {
158 DbgDeclare = FindAllocaDbgDeclare(AI);
1035 DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest); local
    [all...]
Mem2Reg.cpp 73 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
74 if (isAllocaPromotable(AI))
75 Allocas.push_back(AI);
  /external/llvm/lib/CodeGen/
MachineCopyPropagation.cpp 69 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
70 SourceMap::iterator SI = SrcMap.find(*AI);
194 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
195 CI = CopyMap.find(*AI);
218 for (MCRegAliasIterator AI(Def, TRI, false); AI.isValid(); ++AI)
    [all...]
AtomicExpandLoadLinkedPass.cpp 45 bool expandAtomicRMW(AtomicRMWInst *AI);
84 if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst))
85 MadeChange |= expandAtomicRMW(AI);
125 AtomicRMWInst *AI =
131 return expandAtomicRMW(AI);
134 bool AtomicExpandLoadLinked::expandAtomicRMW(AtomicRMWInst *AI) {
135 AtomicOrdering Order = AI->getOrdering();
136 Value *Addr = AI->getPointerOperand();
137 BasicBlock *BB = AI->getParent();
155 BasicBlock *ExitBB = BB->splitBasicBlock(AI, "atomicrmw.end")
    [all...]
StackProtector.cpp 57 StackProtector::getSSPLayout(const AllocaInst *AI) const {
58 return AI ? Layout.lookup(AI) : SSPLK_None;
153 bool StackProtector::HasAddressTaken(const Instruction *AI) {
154 for (const User *U : AI->users()) {
156 if (AI == SI->getValueOperand())
159 if (AI == SI->getOperand(0))
217 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
218 if (AI->isArrayAllocation()) {
225 dyn_cast<ConstantInt>(AI->getArraySize()))
    [all...]
  /external/llvm/lib/Target/Hexagon/
HexagonRemoveSZExtArgs.cpp 58 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE;
59 ++AI, ++Idx) {
61 Argument* Arg = AI;
  /external/llvm/tools/opt/
AnalysisWrappers.cpp 47 for (CallSite::arg_iterator AI = CS.arg_begin(),
48 E = CS.arg_end(); AI != E; ++AI) {
49 if (!isa<Constant>(*AI)) continue;
  /external/llvm/unittests/Transforms/Utils/
IntegerDivision.cpp 37 Function::arg_iterator AI = F->arg_begin();
38 Value *A = AI++;
39 Value *B = AI++;
67 Function::arg_iterator AI = F->arg_begin();
68 Value *A = AI++;
69 Value *B = AI++;
97 Function::arg_iterator AI = F->arg_begin();
98 Value *A = AI++;
99 Value *B = AI++;
127 Function::arg_iterator AI = F->arg_begin()
    [all...]
  /external/llvm/lib/IR/
Mangler.cpp 66 for (Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end();
67 AI != AE; ++AI) {
68 Type *Ty = AI->getType();
70 if (AI->hasByValOrInAllocaAttr())
  /external/llvm/lib/Transforms/Scalar/
ScalarReplAggregates.cpp 102 AllocaInst *AI;
127 explicit AllocaInfo(AllocaInst *ai)
128 : AI(ai), isUnsafe(false), isMemCpySrc(false), isMemCpyDst(false),
152 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
165 void DoScalarReplacement(AllocaInst *AI,
169 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
171 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
173 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
175 void RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI,
    [all...]
  /external/llvm/lib/Transforms/IPO/
IPConstantPropagation.cpp 106 CallSite::arg_iterator AI = CS.arg_begin();
109 ++i, ++AI, ++Arg) {
115 Constant *C = dyn_cast<Constant>(*AI);
120 } else if (*AI == &*Arg) {
135 Function::arg_iterator AI = F.arg_begin();
136 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) {
138 if (ArgumentConstants[i].second || AI->use_empty() ||
139 AI->hasInAllocaAttr() || (AI->hasByValAttr() && !F.onlyReadsMemory()))
143 if (!V) V = UndefValue::get(AI->getType())
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 157 isOnlyCopiedFromConstantGlobal(AllocaInst *AI,
160 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete))
165 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
169 Type *IntPtrTy = DL->getIntPtrType(AI.getType());
170 if (AI.getArraySize()->getType() != IntPtrTy) {
171 Value *V = Builder->CreateIntCast(AI.getArraySize(),
173 AI.setOperand(0, V);
174 return &AI;
179 if (AI.isArrayAllocation()) { // Check C != 1
180 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize()))
    [all...]
  /external/llvm/lib/DebugInfo/
DWARFDebugLoc.cpp 48 RelocAddrMap::const_iterator AI = RelocMap.find(Offset);
51 if (AI != RelocMap.end())
52 E.Begin += AI->second.second;
54 AI = RelocMap.find(Offset);
57 if (AI != RelocMap.end())
58 E.End += AI->second.second;
DWARFFormValue.cpp 146 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr);
147 if (AI != cu->getRelocMap()->end()) {
148 const std::pair<uint8_t, int64_t> &R = AI->second;
182 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr);
184 if (AI != cu->getRelocMap()->end())
185 Value.uval += AI->second.second;
196 RelocAddrMap::const_iterator AI
198 if (AI != cu->getRelocMap()->end()) {
199 const std::pair<uint8_t, int64_t> &R = AI->second;
218 RelocAddrMap::const_iterator AI
    [all...]
  /external/llvm/include/llvm/
PassSupport.h 166 PassInfo *AI = new PassInfo(name, & agName :: ID); \
167 Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false, true); \
168 return AI; \
182 PassInfo *AI = new PassInfo(name, & agName :: ID); \
184 *AI, def, true); \
185 return AI; \
201 PassInfo *AI = new PassInfo(n, & agName :: ID); \
203 *AI, def, true); \
204 return AI; \
  /external/llvm/include/llvm/CodeGen/
StackProtector.h 100 bool HasAddressTaken(const Instruction *AI);
122 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
  /external/llvm/lib/Analysis/
CodeMetrics.cpp 59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
60 if (!AI->isStaticAlloca())

Completed in 420 milliseconds

1 2 3 4 5 6 7