Home
last modified time | relevance | path

Searched refs:AtomicOp (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoZa.td70 multiclass AMOCASPat<string AtomicOp, string BaseInst, ValueType vt = XLenVT,
73 def : Pat<(!cast<PatFrag>(AtomicOp#"_monotonic") (vt GPR:$addr),
77 def : Pat<(!cast<PatFrag>(AtomicOp#"_acquire") (vt GPR:$addr),
81 def : Pat<(!cast<PatFrag>(AtomicOp#"_release") (vt GPR:$addr),
85 def : Pat<(!cast<PatFrag>(AtomicOp#"_acq_rel") (vt GPR:$addr),
89 def : Pat<(!cast<PatFrag>(AtomicOp#"_seq_cst") (vt GPR:$addr),
95 def : Pat<(!cast<PatFrag>(AtomicOp#"_monotonic") (vt GPR:$addr),
99 def : Pat<(!cast<PatFrag>(AtomicOp#"_acquire") (vt GPR:$addr),
103 def : Pat<(!cast<PatFrag>(AtomicOp#"_release") (vt GPR:$addr),
107 def : Pat<(!cast<PatFrag>(AtomicOp#"_acq_rel") (vt GPR:$addr),
[all …]
H A DRISCVInstrInfoA.td125 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_monotonic"),
127 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_acquire"),
129 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_release"),
131 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_acq_rel"),
133 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_seq_cst"),
137 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_monotonic"),
139 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_acquire"),
141 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_release"),
143 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_acq_rel"),
145 def : PatGprGpr<!cast<PatFrag>(AtomicOp#"_seq_cst"),
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp1480 unsigned AtomicOp; in emitAtomicBinary() local
1502 AtomicOp = Mips::ATOMIC_SWAP_I32_POSTRA; in emitAtomicBinary()
1523 AtomicOp = Mips::ATOMIC_SWAP_I64_POSTRA; in emitAtomicBinary()
1610 BuildMI(*BB, II, DL, TII->get(AtomicOp)) in emitAtomicBinary()
1688 unsigned AtomicOp = 0; in emitAtomicBinaryPartword() local
1698 AtomicOp = Mips::ATOMIC_SWAP_I8_POSTRA; in emitAtomicBinaryPartword()
1701 AtomicOp = Mips::ATOMIC_SWAP_I16_POSTRA; in emitAtomicBinaryPartword()
1722 AtomicOp = Mips::ATOMIC_LOAD_OR_I8_POSTRA; in emitAtomicBinaryPartword()
1820 BuildMI(BB, DL, TII->get(AtomicOp)) in emitAtomicBinaryPartword()
1893 BuildMI(*BB, II, DL, TII->get(AtomicOp)) in emitAtomicCmpSwap()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td607 class AtomicOp<string name, bits<16> opCode>: Op<opCode, (outs ID:$res),
615 def OpAtomicLoad: AtomicOp<"OpAtomicLoad", 227>;
631 def OpAtomicIIncrement: AtomicOp<"OpAtomicIIncrement", 232>;
632 def OpAtomicIDecrement: AtomicOp<"OpAtomicIDecrement", 233>;
647 def OpAtomicFlagTestAndSet: AtomicOp<"OpAtomicFlagTestAndSet", 318>;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp3279 llvm::AtomicRMWInst::BinOp AtomicOp = llvm::AtomicRMWInst::BAD_BINOP; in EmitCompoundAssignLValue() local
3289 AtomicOp = llvm::AtomicRMWInst::Add; in EmitCompoundAssignLValue()
3293 AtomicOp = llvm::AtomicRMWInst::Sub; in EmitCompoundAssignLValue()
3297 AtomicOp = llvm::AtomicRMWInst::And; in EmitCompoundAssignLValue()
3301 AtomicOp = llvm::AtomicRMWInst::Xor; in EmitCompoundAssignLValue()
3305 AtomicOp = llvm::AtomicRMWInst::Or; in EmitCompoundAssignLValue()
3311 if (AtomicOp != llvm::AtomicRMWInst::BAD_BINOP) { in EmitCompoundAssignLValue()
3317 AtomicOp, LHSLV.getAddress(CGF), Amt, in EmitCompoundAssignLValue()
H A DCGAtomic.cpp501 AtomicExpr::AtomicOp Op, in EmitPostAtomicMinMax()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h6410 enum AtomicOp { enum
6426 AtomicOp Op;
6431 AtomicOp op, SourceLocation RP);
6435 static unsigned getNumSubExprs(AtomicOp Op);
6472 AtomicOp getOp() const { return Op; } in getOp()
6533 static std::unique_ptr<AtomicScopeModel> getScopeModel(AtomicOp Op) { in getScopeModel()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp4627 SDValue AtomicOp = DAG.getMemIntrinsicNode(Opcode, DL, VTList, Ops, in lowerATOMIC_LOAD_OP() local
4634 SDValue Result = DAG.getNode(ISD::ROTL, DL, WideVT, AtomicOp, ResultShift); in lowerATOMIC_LOAD_OP()
4636 SDValue RetOps[2] = { Result, AtomicOp.getValue(1) }; in lowerATOMIC_LOAD_OP()
4688 SDValue AtomicOp = DAG.getMemIntrinsicNode(SystemZISD::ATOMIC_CMP_SWAP, in lowerATOMIC_CMP_SWAP() local
4690 SDValue Success = emitSETCC(DAG, DL, AtomicOp.getValue(1), in lowerATOMIC_CMP_SWAP()
4693 DAG.ReplaceAllUsesOfValueWith(Op.getValue(0), AtomicOp.getValue(0)); in lowerATOMIC_CMP_SWAP()
4695 DAG.ReplaceAllUsesOfValueWith(Op.getValue(2), AtomicOp.getValue(2)); in lowerATOMIC_CMP_SWAP()
4710 SDValue AtomicOp = DAG.getMemIntrinsicNode(SystemZISD::ATOMIC_CMP_SWAPW, DL, in lowerATOMIC_CMP_SWAP() local
4712 SDValue Success = emitSETCC(DAG, DL, AtomicOp.getValue(1), in lowerATOMIC_CMP_SWAP()
4716 SDValue OrigVal = DAG.getNode(ISD::AssertZext, DL, WideVT, AtomicOp.getValue(0), in lowerATOMIC_CMP_SWAP()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp4876 AtomicOp op, SourceLocation RP) in AtomicExpr()
4885 unsigned AtomicExpr::getNumSubExprs(AtomicOp Op) { in getNumSubExprs()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocChecker.cpp3393 AtomicExpr::AtomicOp Op = AE->getOp(); in VisitNode()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp6012 AtomicRMWInst::BinOp AtomicOp = (UpdateExpr ? RMWOp : AtomicRMWInst::Xchg); in createAtomicCapture() local
6014 emitAtomicUpdate(AllocaIP, X.Var, X.ElemTy, Expr, AO, AtomicOp, UpdateOp, in createAtomicCapture()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp1421 E->Op = AtomicExpr::AtomicOp(Record.readInt()); in VisitAtomicExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp7772 static bool isValidOrderingForOp(int64_t Ordering, AtomicExpr::AtomicOp Op) { in isValidOrderingForOp()
7809 AtomicExpr::AtomicOp Op) { in SemaAtomicOpsOverloaded()
7820 AtomicExpr::AtomicOp Op, in BuildAtomicExpr()
H A DTreeTransform.h3969 AtomicExpr::AtomicOp Op, in RebuildAtomicExpr()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h6019 AtomicExpr::AtomicOp Op,
13963 AtomicExpr::AtomicOp Op);