/external/llvm/test/CodeGen/CPP/ |
D | atomic.ll | 5 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Xchg, {{.*}}, Se… 10 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Add, {{.*}}, Seq… 15 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Sub, {{.*}}, Mon… 20 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::And, {{.*}}, Acq… 25 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Nand, {{.*}}, Re… 30 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Or, {{.*}}, Sequ… 35 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Xor, {{.*}}, Rel… 40 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Max, {{.*}}, Mon… 45 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Min, {{.*}}, Acq… 50 …; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::UMax, {{.*}}, Mo… [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 43 static bool LowerAtomicRMWInst(AtomicRMWInst *RMWI) { in LowerAtomicRMWInst() 53 case AtomicRMWInst::Xchg: in LowerAtomicRMWInst() 56 case AtomicRMWInst::Add: in LowerAtomicRMWInst() 59 case AtomicRMWInst::Sub: in LowerAtomicRMWInst() 62 case AtomicRMWInst::And: in LowerAtomicRMWInst() 65 case AtomicRMWInst::Nand: in LowerAtomicRMWInst() 68 case AtomicRMWInst::Or: in LowerAtomicRMWInst() 71 case AtomicRMWInst::Xor: in LowerAtomicRMWInst() 74 case AtomicRMWInst::Max: in LowerAtomicRMWInst() 78 case AtomicRMWInst::Min: in LowerAtomicRMWInst() [all …]
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 59 bool tryExpandAtomicRMW(AtomicRMWInst *AI); 64 bool isIdempotentRMW(AtomicRMWInst *AI); 65 bool simplifyIdempotentRMW(AtomicRMWInst *AI); 97 auto RMWI = dyn_cast<AtomicRMWInst>(I); in runOnFunction() 322 AtomicRMWInst *AI = in expandAtomicStore() 323 Builder.CreateAtomicRMW(AtomicRMWInst::Xchg, SI->getPointerOperand(), in expandAtomicStore() 344 static Value *performAtomicOp(AtomicRMWInst::BinOp Op, IRBuilder<> &Builder, in performAtomicOp() 348 case AtomicRMWInst::Xchg: in performAtomicOp() 350 case AtomicRMWInst::Add: in performAtomicOp() 352 case AtomicRMWInst::Sub: in performAtomicOp() [all …]
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 112 Function *TsanAtomicRMW[AtomicRMWInst::LAST_BINOP + 1][kNumberOfAccessSizes]; 177 for (int op = AtomicRMWInst::FIRST_BINOP; in initializeCallbacks() 178 op <= AtomicRMWInst::LAST_BINOP; ++op) { in initializeCallbacks() 181 if (op == AtomicRMWInst::Xchg) in initializeCallbacks() 183 else if (op == AtomicRMWInst::Add) in initializeCallbacks() 185 else if (op == AtomicRMWInst::Sub) in initializeCallbacks() 187 else if (op == AtomicRMWInst::And) in initializeCallbacks() 189 else if (op == AtomicRMWInst::Or) in initializeCallbacks() 191 else if (op == AtomicRMWInst::Xor) in initializeCallbacks() 193 else if (op == AtomicRMWInst::Nand) in initializeCallbacks() [all …]
|
D | BoundsChecking.cpp | 183 isa<AtomicRMWInst>(I)) in runOnFunction() 201 } else if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst)) { in runOnFunction()
|
/external/llvm/include/llvm/CodeGen/ |
D | AtomicExpandUtils.h | 15 class AtomicRMWInst; variable 56 expandAtomicRMWToCmpXchg(AtomicRMWInst *AI, CreateCmpXchgInstFun Factory);
|
/external/llvm/lib/IR/ |
D | Instruction.cpp | 320 if (const AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(I1)) in haveSameSpecialState() 321 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() && in haveSameSpecialState() 322 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() && in haveSameSpecialState() 323 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() && in haveSameSpecialState() 324 RMWI->getSynchScope() == cast<AtomicRMWInst>(I2)->getSynchScope(); in haveSameSpecialState()
|
D | AsmWriter.cpp | 1034 AtomicRMWInst::BinOp Op) { in writeAtomicRMWOperation() 1037 case AtomicRMWInst::Xchg: Out << " xchg"; break; in writeAtomicRMWOperation() 1038 case AtomicRMWInst::Add: Out << " add"; break; in writeAtomicRMWOperation() 1039 case AtomicRMWInst::Sub: Out << " sub"; break; in writeAtomicRMWOperation() 1040 case AtomicRMWInst::And: Out << " and"; break; in writeAtomicRMWOperation() 1041 case AtomicRMWInst::Nand: Out << " nand"; break; in writeAtomicRMWOperation() 1042 case AtomicRMWInst::Or: Out << " or"; break; in writeAtomicRMWOperation() 1043 case AtomicRMWInst::Xor: Out << " xor"; break; in writeAtomicRMWOperation() 1044 case AtomicRMWInst::Max: Out << " max"; break; in writeAtomicRMWOperation() 1045 case AtomicRMWInst::Min: Out << " min"; break; in writeAtomicRMWOperation() [all …]
|
D | Core.cpp | 2809 AtomicRMWInst::BinOp intop; in LLVMBuildAtomicRMW() 2811 case LLVMAtomicRMWBinOpXchg: intop = AtomicRMWInst::Xchg; break; in LLVMBuildAtomicRMW() 2812 case LLVMAtomicRMWBinOpAdd: intop = AtomicRMWInst::Add; break; in LLVMBuildAtomicRMW() 2813 case LLVMAtomicRMWBinOpSub: intop = AtomicRMWInst::Sub; break; in LLVMBuildAtomicRMW() 2814 case LLVMAtomicRMWBinOpAnd: intop = AtomicRMWInst::And; break; in LLVMBuildAtomicRMW() 2815 case LLVMAtomicRMWBinOpNand: intop = AtomicRMWInst::Nand; break; in LLVMBuildAtomicRMW() 2816 case LLVMAtomicRMWBinOpOr: intop = AtomicRMWInst::Or; break; in LLVMBuildAtomicRMW() 2817 case LLVMAtomicRMWBinOpXor: intop = AtomicRMWInst::Xor; break; in LLVMBuildAtomicRMW() 2818 case LLVMAtomicRMWBinOpMax: intop = AtomicRMWInst::Max; break; in LLVMBuildAtomicRMW() 2819 case LLVMAtomicRMWBinOpMin: intop = AtomicRMWInst::Min; break; in LLVMBuildAtomicRMW() [all …]
|
D | Instructions.cpp | 1442 void AtomicRMWInst::Init(BinOp Operation, Value *Ptr, Value *Val, in Init() 1462 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val, in AtomicRMWInst() function in AtomicRMWInst 1467 OperandTraits<AtomicRMWInst>::op_begin(this), in AtomicRMWInst() 1468 OperandTraits<AtomicRMWInst>::operands(this), in AtomicRMWInst() 1473 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val, in AtomicRMWInst() function in AtomicRMWInst 1478 OperandTraits<AtomicRMWInst>::op_begin(this), in AtomicRMWInst() 1479 OperandTraits<AtomicRMWInst>::operands(this), in AtomicRMWInst() 3839 AtomicRMWInst *AtomicRMWInst::cloneImpl() const { in cloneImpl() 3840 AtomicRMWInst *Result = in cloneImpl() 3841 new AtomicRMWInst(getOperation(),getOperand(0), getOperand(1), in cloneImpl()
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryLocation.h | 69 static MemoryLocation get(const AtomicRMWInst *RMWI); 79 else if (auto *I = dyn_cast<AtomicRMWInst>(Inst)) in get()
|
D | AliasAnalysis.h | 407 ModRefInfo getModRefInfo(const AtomicRMWInst *RMW, const MemoryLocation &Loc); 410 ModRefInfo getModRefInfo(const AtomicRMWInst *RMW, const Value *P, in getModRefInfo() 481 return getModRefInfo((const AtomicRMWInst*)I, Loc); in getModRefInfo()
|
/external/llvm/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 1584 const AtomicRMWInst *rmwi = cast<AtomicRMWInst>(I); in printInstruction() 1589 case AtomicRMWInst::Xchg: Operation = "AtomicRMWInst::Xchg"; break; in printInstruction() 1590 case AtomicRMWInst::Add: Operation = "AtomicRMWInst::Add"; break; in printInstruction() 1591 case AtomicRMWInst::Sub: Operation = "AtomicRMWInst::Sub"; break; in printInstruction() 1592 case AtomicRMWInst::And: Operation = "AtomicRMWInst::And"; break; in printInstruction() 1593 case AtomicRMWInst::Nand: Operation = "AtomicRMWInst::Nand"; break; in printInstruction() 1594 case AtomicRMWInst::Or: Operation = "AtomicRMWInst::Or"; break; in printInstruction() 1595 case AtomicRMWInst::Xor: Operation = "AtomicRMWInst::Xor"; break; in printInstruction() 1596 case AtomicRMWInst::Max: Operation = "AtomicRMWInst::Max"; break; in printInstruction() 1597 case AtomicRMWInst::Min: Operation = "AtomicRMWInst::Min"; break; in printInstruction() [all …]
|
/external/llvm/unittests/Analysis/ |
D | AliasAnalysisTest.cpp | 188 new AtomicRMWInst(AtomicRMWInst::Xchg, Addr, ConstantInt::get(IntType, 1), in TEST_F()
|
/external/clang/lib/CodeGen/ |
D | CGStmtOpenMP.cpp | 2215 llvm::AtomicRMWInst::BinOp RMWOp; in emitOMPAtomicRMW() 2218 RMWOp = llvm::AtomicRMWInst::Add; in emitOMPAtomicRMW() 2223 RMWOp = llvm::AtomicRMWInst::Sub; in emitOMPAtomicRMW() 2226 RMWOp = llvm::AtomicRMWInst::And; in emitOMPAtomicRMW() 2229 RMWOp = llvm::AtomicRMWInst::Or; in emitOMPAtomicRMW() 2232 RMWOp = llvm::AtomicRMWInst::Xor; in emitOMPAtomicRMW() 2236 ? (IsXLHSInRHSPart ? llvm::AtomicRMWInst::Min in emitOMPAtomicRMW() 2237 : llvm::AtomicRMWInst::Max) in emitOMPAtomicRMW() 2238 : (IsXLHSInRHSPart ? llvm::AtomicRMWInst::UMin in emitOMPAtomicRMW() 2239 : llvm::AtomicRMWInst::UMax); in emitOMPAtomicRMW() [all …]
|
D | CGBuiltin.cpp | 86 llvm::AtomicRMWInst::BinOp Kind, in MakeBinaryAtomicValue() 137 llvm::AtomicRMWInst::BinOp Kind, in EmitBinaryAtomic() 146 llvm::AtomicRMWInst::BinOp Kind, in EmitBinaryAtomicPost() 1134 return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::Add, E); in EmitBuiltinExpr() 1140 return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::Sub, E); in EmitBuiltinExpr() 1146 return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::Or, E); in EmitBuiltinExpr() 1152 return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::And, E); in EmitBuiltinExpr() 1158 return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::Xor, E); in EmitBuiltinExpr() 1164 return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::Nand, E); in EmitBuiltinExpr() 1168 return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::Min, E); in EmitBuiltinExpr() [all …]
|
D | CGAtomic.cpp | 504 llvm::AtomicRMWInst::BinOp Op = llvm::AtomicRMWInst::Add; in EmitAtomicOp() 572 Op = llvm::AtomicRMWInst::Xchg; in EmitAtomicOp() 580 Op = llvm::AtomicRMWInst::Add; in EmitAtomicOp() 588 Op = llvm::AtomicRMWInst::Sub; in EmitAtomicOp() 596 Op = llvm::AtomicRMWInst::And; in EmitAtomicOp() 604 Op = llvm::AtomicRMWInst::Or; in EmitAtomicOp() 612 Op = llvm::AtomicRMWInst::Xor; in EmitAtomicOp() 619 Op = llvm::AtomicRMWInst::Nand; in EmitAtomicOp() 624 llvm::AtomicRMWInst *RMWI = in EmitAtomicOp()
|
D | CGExprScalar.cpp | 1665 return Builder.CreateAtomicRMW(llvm::AtomicRMWInst::Xchg, in EmitScalarPrePostIncDec() 1676 llvm::AtomicRMWInst::BinOp aop = isInc ? llvm::AtomicRMWInst::Add : in EmitScalarPrePostIncDec() 1677 llvm::AtomicRMWInst::Sub; in EmitScalarPrePostIncDec() 2133 llvm::AtomicRMWInst::BinOp aop = llvm::AtomicRMWInst::BAD_BINOP; in EmitCompoundAssignLValue() 2142 aop = llvm::AtomicRMWInst::Add; in EmitCompoundAssignLValue() 2145 aop = llvm::AtomicRMWInst::Sub; in EmitCompoundAssignLValue() 2148 aop = llvm::AtomicRMWInst::And; in EmitCompoundAssignLValue() 2151 aop = llvm::AtomicRMWInst::Xor; in EmitCompoundAssignLValue() 2154 aop = llvm::AtomicRMWInst::Or; in EmitCompoundAssignLValue() 2159 if (aop != llvm::AtomicRMWInst::BAD_BINOP) { in EmitCompoundAssignLValue()
|
/external/llvm/lib/Bitcode/Writer/ |
D | BitcodeWriter.cpp | 110 static unsigned GetEncodedRMWOperation(AtomicRMWInst::BinOp Op) { in GetEncodedRMWOperation() 113 case AtomicRMWInst::Xchg: return bitc::RMW_XCHG; in GetEncodedRMWOperation() 114 case AtomicRMWInst::Add: return bitc::RMW_ADD; in GetEncodedRMWOperation() 115 case AtomicRMWInst::Sub: return bitc::RMW_SUB; in GetEncodedRMWOperation() 116 case AtomicRMWInst::And: return bitc::RMW_AND; in GetEncodedRMWOperation() 117 case AtomicRMWInst::Nand: return bitc::RMW_NAND; in GetEncodedRMWOperation() 118 case AtomicRMWInst::Or: return bitc::RMW_OR; in GetEncodedRMWOperation() 119 case AtomicRMWInst::Xor: return bitc::RMW_XOR; in GetEncodedRMWOperation() 120 case AtomicRMWInst::Max: return bitc::RMW_MAX; in GetEncodedRMWOperation() 121 case AtomicRMWInst::Min: return bitc::RMW_MIN; in GetEncodedRMWOperation() [all …]
|
/external/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 57 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
|
/external/llvm/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 1033 if (const AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(L)) { in cmpOperations() 1035 cast<AtomicRMWInst>(R)->getOperation())) in cmpOperations() 1038 cast<AtomicRMWInst>(R)->isVolatile())) in cmpOperations() 1041 cast<AtomicRMWInst>(R)->getOrdering())) in cmpOperations() 1044 cast<AtomicRMWInst>(R)->getSynchScope()); in cmpOperations()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 775 static AtomicRMWInst::BinOp getDecodedRMWOperation(unsigned Val) { in getDecodedRMWOperation() 777 default: return AtomicRMWInst::BAD_BINOP; in getDecodedRMWOperation() 778 case bitc::RMW_XCHG: return AtomicRMWInst::Xchg; in getDecodedRMWOperation() 779 case bitc::RMW_ADD: return AtomicRMWInst::Add; in getDecodedRMWOperation() 780 case bitc::RMW_SUB: return AtomicRMWInst::Sub; in getDecodedRMWOperation() 781 case bitc::RMW_AND: return AtomicRMWInst::And; in getDecodedRMWOperation() 782 case bitc::RMW_NAND: return AtomicRMWInst::Nand; in getDecodedRMWOperation() 783 case bitc::RMW_OR: return AtomicRMWInst::Or; in getDecodedRMWOperation() 784 case bitc::RMW_XOR: return AtomicRMWInst::Xor; in getDecodedRMWOperation() 785 case bitc::RMW_MAX: return AtomicRMWInst::Max; in getDecodedRMWOperation() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.h | 241 shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override { in shouldExpandAtomicRMWInIR()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.h | 1083 shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override; 1086 lowerIdempotentRMWIntoFencedLoad(AtomicRMWInst *AI) const override;
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 5930 AtomicRMWInst::BinOp Operation; in ParseAtomicRMW() 5937 case lltok::kw_xchg: Operation = AtomicRMWInst::Xchg; break; in ParseAtomicRMW() 5938 case lltok::kw_add: Operation = AtomicRMWInst::Add; break; in ParseAtomicRMW() 5939 case lltok::kw_sub: Operation = AtomicRMWInst::Sub; break; in ParseAtomicRMW() 5940 case lltok::kw_and: Operation = AtomicRMWInst::And; break; in ParseAtomicRMW() 5941 case lltok::kw_nand: Operation = AtomicRMWInst::Nand; break; in ParseAtomicRMW() 5942 case lltok::kw_or: Operation = AtomicRMWInst::Or; break; in ParseAtomicRMW() 5943 case lltok::kw_xor: Operation = AtomicRMWInst::Xor; break; in ParseAtomicRMW() 5944 case lltok::kw_max: Operation = AtomicRMWInst::Max; break; in ParseAtomicRMW() 5945 case lltok::kw_min: Operation = AtomicRMWInst::Min; break; in ParseAtomicRMW() [all …]
|