Searched defs:RMWI (Results 1 - 9 of 9) sorted by relevance

/external/llvm/lib/Analysis/
H A DMemoryLocation.cpp57 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { argument
59 RMWI->getAAMetadata(AATags);
60 const auto &DL = RMWI->getModule()->getDataLayout();
62 return MemoryLocation(RMWI->getPointerOperand(),
63 DL.getTypeStoreSize(RMWI->getValOperand()->getType()),
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
H A DLowerAtomic.cpp39 static bool LowerAtomicRMWInst(AtomicRMWInst *RMWI) { argument
40 IRBuilder<> Builder(RMWI->getParent(), RMWI);
41 Value *Ptr = RMWI->getPointerOperand();
42 Value *Val = RMWI->getValOperand();
47 switch (RMWI->getOperation()) {
88 RMWI->replaceAllUsesWith(Orig);
89 RMWI->eraseFromParent();
122 else if (AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(Inst))
123 Changed |= LowerAtomicRMWInst(RMWI);
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DLowerAtomic.cpp44 static bool LowerAtomicRMWInst(AtomicRMWInst *RMWI) { argument
45 IRBuilder<> Builder(RMWI);
46 Value *Ptr = RMWI->getPointerOperand();
47 Value *Val = RMWI->getValOperand();
52 switch (RMWI->getOperation()) {
93 RMWI->replaceAllUsesWith(Orig);
94 RMWI->eraseFromParent();
121 else if (AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(Inst))
122 Changed |= LowerAtomicRMWInst(RMWI);
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DAliasAnalysis.cpp248 AliasAnalysis::getLocation(const AtomicRMWInst *RMWI) { argument
249 return Location(RMWI->getPointerOperand(),
250 getTypeStoreSize(RMWI->getValOperand()->getType()),
251 RMWI->getMetadata(LLVMContext::MD_tbaa));
/external/clang/lib/CodeGen/
H A DCGAtomic.cpp612 llvm::AtomicRMWInst *RMWI = local
614 RMWI->setVolatile(E->isVolatile());
618 llvm::Value *Result = RMWI;
620 Result = CGF.Builder.CreateBinOp(PostOp, RMWI, LoadVal1);
H A DCGBuiltin.cpp1953 AtomicRMWInst *RMWI = Builder.CreateAtomicRMW( local
1958 RMWI->setVolatile(true);
1959 return RValue::get(Builder.CreateAdd(RMWI, ConstantInt::get(IntTy, 1)));
1963 AtomicRMWInst *RMWI = Builder.CreateAtomicRMW( local
1968 RMWI->setVolatile(true);
1969 return RValue::get(Builder.CreateSub(RMWI, ConstantInt::get(IntTy, 1)));
1972 AtomicRMWInst *RMWI = Builder.CreateAtomicRMW( local
1977 RMWI->setVolatile(true);
1978 return RValue::get(RMWI);
/external/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp120 unsigned getAtomicOpSize(AtomicRMWInst *RMWI) { argument
121 const DataLayout &DL = RMWI->getModule()->getDataLayout();
122 return DL.getTypeStoreSize(RMWI->getValOperand()->getType());
149 unsigned getAtomicOpAlign(AtomicRMWInst *RMWI) { argument
153 const DataLayout &DL = RMWI->getModule()->getDataLayout();
154 return DL.getTypeStoreSize(RMWI->getValOperand()->getType());
194 auto RMWI = dyn_cast<AtomicRMWInst>(I); local
196 assert((LI || SI || RMWI || CASI) && "Unknown atomic instruction");
211 } else if (RMWI) {
212 if (!atomicSizeSupported(TLI, RMWI)) {
1183 isIdempotentRMW(AtomicRMWInst* RMWI) argument
1203 simplifyIdempotentRMW(AtomicRMWInst* RMWI) argument
[all...]
/external/swiftshader/third_party/LLVM/lib/VMCore/
H A DVerifier.cpp293 void visitAtomicRMWInst(AtomicRMWInst &RMWI);
1378 void Verifier::visitAtomicRMWInst(AtomicRMWInst &RMWI) { argument
1379 Assert1(RMWI.getOrdering() != NotAtomic,
1380 "atomicrmw instructions must be atomic.", &RMWI);
1381 Assert1(RMWI.getOrdering() != Unordered,
1382 "atomicrmw instructions cannot be unordered.", &RMWI);
1383 PointerType *PTy = dyn_cast<PointerType>(RMWI.getOperand(0)->getType());
1384 Assert1(PTy, "First atomicrmw operand must be a pointer.", &RMWI);
1386 Assert2(ElTy == RMWI.getOperand(1)->getType(),
1388 &RMWI, ElT
[all...]
/external/llvm/lib/IR/
H A DVerifier.cpp424 void visitAtomicRMWInst(AtomicRMWInst &RMWI);
3121 void Verifier::visitAtomicRMWInst(AtomicRMWInst &RMWI) { argument
3122 Assert(RMWI.getOrdering() != AtomicOrdering::NotAtomic,
3123 "atomicrmw instructions must be atomic.", &RMWI);
3124 Assert(RMWI.getOrdering() != AtomicOrdering::Unordered,
3125 "atomicrmw instructions cannot be unordered.", &RMWI);
3126 PointerType *PTy = dyn_cast<PointerType>(RMWI.getOperand(0)->getType());
3127 Assert(PTy, "First atomicrmw operand must be a pointer.", &RMWI);
3130 &RMWI, ElTy);
3131 checkAtomicMemAccessSize(M, ElTy, &RMWI);
[all...]

Completed in 372 milliseconds