Home
last modified time | relevance | path

Searched refs:Chain (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2PolygonBuilderTest.java33 private class Chain { class in S2PolygonBuilderTest
37 public Chain(String str, boolean closed) { in Chain() method in S2PolygonBuilderTest.Chain
55 Chain[] chainsIn;
67 Chain[] chainsIn, in TestCase()
82 new TestCase(0, 0, 0.0, 10.0, new Chain[] {new Chain(null, false)}, new String[] {}, 0),
89 new Chain[] {new Chain("0:0, 0:10, 10:5", true), new Chain("0:0, 5:5", false),
90 new Chain("10:5, 20:7, 30:10, 40:15, 50:3, 60:-20", false)},
97 new Chain[] {new Chain("0:0, 0:10, 5:15, 10:10, 10:0", true),
98 new Chain("10:10, 12:12, 14:14, 16:16, 18:18", false),
99 new Chain("14:14, 14:16, 14:18, 14:20", false),
[all …]
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp48 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemset() argument
88 CLI.setDebugLoc(dl).setChain(Chain) in EmitTargetCodeForMemset()
143 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, dl, AVT), in EmitTargetCodeForMemset()
145 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
149 Chain = DAG.getCopyToReg(Chain, dl, X86::AL, Src, InFlag); in EmitTargetCodeForMemset()
150 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
153 Chain = DAG.getCopyToReg(Chain, dl, Subtarget.is64Bit() ? X86::RCX : X86::ECX, in EmitTargetCodeForMemset()
155 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
156 Chain = DAG.getCopyToReg(Chain, dl, Subtarget.is64Bit() ? X86::RDI : X86::EDI, in EmitTargetCodeForMemset()
158 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
[all …]
/external/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp97 getBoundaryInstrs(ArrayRef<Value *> Chain);
100 void eraseInstructions(ArrayRef<Value *> Chain);
107 splitOddVectorElts(ArrayRef<Value *> Chain, unsigned ElementSizeBits);
113 unsigned getVectorizablePrefixEndIdx(ArrayRef<Value *> Chain,
128 bool vectorizeLoadChain(ArrayRef<Value *> Chain,
132 bool vectorizeStoreChain(ArrayRef<Value *> Chain,
375 Vectorizer::getBoundaryInstrs(ArrayRef<Value *> Chain) { in getBoundaryInstrs() argument
376 Instruction *C0 = cast<Instruction>(Chain[0]); in getBoundaryInstrs()
383 if (!is_contained(Chain, &I)) in getBoundaryInstrs()
390 if (NumFound == Chain.size()) { in getBoundaryInstrs()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp47 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Val, in EmitTargetCodeForMemset() argument
89 .setChain(Chain) in EmitTargetCodeForMemset()
144 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, dl, AVT), in EmitTargetCodeForMemset()
146 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
150 Chain = DAG.getCopyToReg(Chain, dl, X86::AL, Val, InFlag); in EmitTargetCodeForMemset()
151 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
155 Chain = DAG.getCopyToReg(Chain, dl, Use64BitRegs ? X86::RCX : X86::ECX, in EmitTargetCodeForMemset()
157 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
158 Chain = DAG.getCopyToReg(Chain, dl, Use64BitRegs ? X86::RDI : X86::EDI, in EmitTargetCodeForMemset()
160 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/memory/
DChain.java33 public abstract class Chain { class
35 private final Chain parent;
37 Chain(Chain parent, Object value) { in Chain() method in Chain
42 static Chain root(Object value) { in root()
43 return new Chain(null, Preconditions.checkNotNull(value)) { in root()
71 public @Nonnull Chain getParent() {
114 Chain current = this;
121 Deque<Chain> reverse() {
122 Deque<Chain> reverseChain = new ArrayDeque<Chain>(8);
123 Chain current = this;
[all …]
DObjectExplorer.java100 Deque<Chain> stack = new ArrayDeque<Chain>(32); in exploreObject()
101 if (rootObject != null) stack.push(Chain.root(rootObject)); in exploreObject()
104 Chain chain = stack.pop(); in exploreObject()
157 Chain extendedChain = chain.appendField(field, childValue); in exploreObject()
175 static class AtMostOncePredicate implements Predicate<Chain> {
179 @Override public boolean apply(Chain chain) { in apply()
184 static final Predicate<Chain> notEnumFieldsOrClasses = new Predicate<Chain>() {
185 @Override public boolean apply(Chain chain) {
191 static final Function<Chain, Object> chainToObject =
192 new Function<Chain, Object>() {
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp27 unsigned Loop, SDValue Chain, SDValue Dst, in emitMemMem() argument
42 return DAG.getNode(Loop, DL, MVT::Other, Chain, Dst, Src, in emitMemMem()
45 return DAG.getNode(Sequence, DL, MVT::Other, Chain, Dst, Src, in emitMemMem()
50 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemcpy() argument
58 Chain, Dst, Src, CSize->getZExtValue()); in EmitTargetCodeForMemcpy()
65 static SDValue memsetStore(SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, in memsetStore() argument
71 return DAG.getStore(Chain, DL, in memsetStore()
78 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, in EmitTargetCodeForMemset() argument
101 SDValue Chain1 = memsetStore(DAG, DL, Chain, Dst, ByteVal, Size1, in EmitTargetCodeForMemset()
108 SDValue Chain2 = memsetStore(DAG, DL, Chain, Dst, ByteVal, Size2, in EmitTargetCodeForMemset()
[all …]
/external/llvm-project/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp52 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Val, in EmitTargetCodeForMemset() argument
94 .setChain(Chain) in EmitTargetCodeForMemset()
148 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, dl, AVT), in EmitTargetCodeForMemset()
150 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
154 Chain = DAG.getCopyToReg(Chain, dl, X86::AL, Val, InFlag); in EmitTargetCodeForMemset()
155 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
159 Chain = DAG.getCopyToReg(Chain, dl, Use64BitRegs ? X86::RCX : X86::ECX, in EmitTargetCodeForMemset()
161 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
162 Chain = DAG.getCopyToReg(Chain, dl, Use64BitRegs ? X86::RDI : X86::EDI, in EmitTargetCodeForMemset()
164 InFlag = Chain.getValue(1); in EmitTargetCodeForMemset()
[all …]
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp26 unsigned Loop, SDValue Chain, SDValue Dst, in emitMemMem() argument
41 return DAG.getNode(Loop, DL, MVT::Other, Chain, Dst, Src, in emitMemMem()
44 return DAG.getNode(Sequence, DL, MVT::Other, Chain, Dst, Src, in emitMemMem()
49 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemcpy() argument
57 Chain, Dst, Src, CSize->getZExtValue()); in EmitTargetCodeForMemcpy()
64 static SDValue memsetStore(SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, in memsetStore() argument
71 Chain, DL, DAG.getConstant(StoreVal, DL, MVT::getIntegerVT(Size * 8)), in memsetStore()
76 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, in EmitTargetCodeForMemset() argument
99 SDValue Chain1 = memsetStore(DAG, DL, Chain, Dst, ByteVal, Size1, in EmitTargetCodeForMemset()
107 DAG, DL, Chain, Dst, ByteVal, Size2, in EmitTargetCodeForMemset()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp26 unsigned Loop, SDValue Chain, SDValue Dst, in emitMemMem() argument
41 return DAG.getNode(Loop, DL, MVT::Other, Chain, Dst, Src, in emitMemMem()
44 return DAG.getNode(Sequence, DL, MVT::Other, Chain, Dst, Src, in emitMemMem()
49 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemcpy() argument
57 Chain, Dst, Src, CSize->getZExtValue()); in EmitTargetCodeForMemcpy()
64 static SDValue memsetStore(SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, in memsetStore() argument
71 Chain, DL, DAG.getConstant(StoreVal, DL, MVT::getIntegerVT(Size * 8)), in memsetStore()
76 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, in EmitTargetCodeForMemset() argument
99 SDValue Chain1 = memsetStore(DAG, DL, Chain, Dst, ByteVal, Size1, in EmitTargetCodeForMemset()
106 SDValue Chain2 = memsetStore(DAG, DL, Chain, Dst, ByteVal, Size2, in EmitTargetCodeForMemset()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp164 getBoundaryInstrs(ArrayRef<Instruction *> Chain);
167 void eraseInstructions(ArrayRef<Instruction *> Chain);
174 splitOddVectorElts(ArrayRef<Instruction *> Chain, unsigned ElementSizeBits);
182 ArrayRef<Instruction *> getVectorizablePrefix(ArrayRef<Instruction *> Chain);
196 vectorizeLoadChain(ArrayRef<Instruction *> Chain,
201 vectorizeStoreChain(ArrayRef<Instruction *> Chain,
544 Vectorizer::getBoundaryInstrs(ArrayRef<Instruction *> Chain) { in getBoundaryInstrs() argument
545 Instruction *C0 = Chain[0]; in getBoundaryInstrs()
552 if (!is_contained(Chain, &I)) in getBoundaryInstrs()
559 if (NumFound == Chain.size()) { in getBoundaryInstrs()
[all …]
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp147 getBoundaryInstrs(ArrayRef<Instruction *> Chain);
150 void eraseInstructions(ArrayRef<Instruction *> Chain);
157 splitOddVectorElts(ArrayRef<Instruction *> Chain, unsigned ElementSizeBits);
165 ArrayRef<Instruction *> getVectorizablePrefix(ArrayRef<Instruction *> Chain);
179 vectorizeLoadChain(ArrayRef<Instruction *> Chain,
184 vectorizeStoreChain(ArrayRef<Instruction *> Chain,
584 Vectorizer::getBoundaryInstrs(ArrayRef<Instruction *> Chain) { in getBoundaryInstrs() argument
585 Instruction *C0 = Chain[0]; in getBoundaryInstrs()
592 if (!is_contained(Chain, &I)) in getBoundaryInstrs()
599 if (NumFound == Chain.size()) { in getBoundaryInstrs()
[all …]
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp107 class Chain;
138 bool colorChainSet(std::vector<Chain*> GV, MachineBasicBlock &MBB,
140 bool colorChain(Chain *G, Color C, MachineBasicBlock &MBB);
141 int scavengeRegister(Chain *G, Color C, MachineBasicBlock &MBB);
143 std::map<unsigned, Chain*> &Active,
144 std::vector<std::unique_ptr<Chain>> &AllChains);
146 std::map<unsigned, Chain*> &RegChains);
148 Chain *getAndEraseNext(Color PreferredColor, std::vector<Chain*> &L);
185 class Chain { class
203 Chain(MachineInstr *MI, unsigned Idx, Color C) in Chain() function in __anonc196c1a00211::Chain
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp107 class Chain;
138 bool colorChainSet(std::vector<Chain*> GV, MachineBasicBlock &MBB,
140 bool colorChain(Chain *G, Color C, MachineBasicBlock &MBB);
141 int scavengeRegister(Chain *G, Color C, MachineBasicBlock &MBB);
143 std::map<unsigned, Chain*> &Active,
144 std::vector<std::unique_ptr<Chain>> &AllChains);
146 std::map<unsigned, Chain*> &RegChains);
148 Chain *getAndEraseNext(Color PreferredColor, std::vector<Chain*> &L);
185 class Chain { class
203 Chain(MachineInstr *MI, unsigned Idx, Color C) in Chain() function in __anon6803f9140211::Chain
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp112 class Chain;
143 bool colorChainSet(std::vector<Chain*> GV, MachineBasicBlock &MBB,
145 bool colorChain(Chain *G, Color C, MachineBasicBlock &MBB);
146 int scavengeRegister(Chain *G, Color C, MachineBasicBlock &MBB);
148 std::map<unsigned, Chain*> &Active,
149 std::vector<std::unique_ptr<Chain>> &AllChains);
151 std::map<unsigned, Chain*> &RegChains);
153 Chain *getAndEraseNext(Color PreferredColor, std::vector<Chain*> &L);
190 class Chain { class
208 Chain(MachineInstr *MI, unsigned Idx, Color C) in Chain() function in __anon911bd4320211::Chain
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineBlockPlacement.cpp273 void merge(MachineBasicBlock *BB, BlockChain *Chain) { in merge() argument
278 if (!Chain) { in merge()
286 assert(BB == *Chain->begin() && "Passed BB is not head of Chain."); in merge()
287 assert(Chain->begin() != Chain->end()); in merge()
291 for (MachineBasicBlock *ChainBB : *Chain) { in merge()
293 assert(BlockToChain[ChainBB] == Chain && "Incoming blocks not in chain."); in merge()
405 const BlockChain &Chain, const MachineBasicBlock *LoopHeaderBB,
411 const BlockChain &Chain, const MachineBasicBlock *BB,
417 const MachineBasicBlock *BB, const BlockChain &Chain,
422 const BlockChain &Chain, const BlockFilterSet *BlockFilter,
[all …]
/external/clang/include/clang/Serialization/
DModuleManager.h35 SmallVector<ModuleFile *, 2> Chain; variable
124 ModuleIterator begin() { return Chain.begin(); } in begin()
126 ModuleIterator end() { return Chain.end(); } in end()
129 ModuleConstIterator begin() const { return Chain.begin(); } in begin()
131 ModuleConstIterator end() const { return Chain.end(); } in end()
134 ModuleReverseIterator rbegin() { return Chain.rbegin(); } in rbegin()
136 ModuleReverseIterator rend() { return Chain.rend(); } in rend()
145 ModuleFile &getPrimaryModule() { return *Chain[0]; } in getPrimaryModule()
149 ModuleFile &getPrimaryModule() const { return *Chain[0]; } in getPrimaryModule()
152 ModuleFile &operator[](unsigned Index) const { return *Chain[Index]; }
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DMachineBlockPlacement.cpp281 void merge(MachineBasicBlock *BB, BlockChain *Chain) { in merge() argument
286 if (!Chain) { in merge()
294 assert(BB == *Chain->begin() && "Passed BB is not head of Chain."); in merge()
295 assert(Chain->begin() != Chain->end()); in merge()
299 for (MachineBasicBlock *ChainBB : *Chain) { in merge()
301 assert(BlockToChain[ChainBB] == Chain && "Incoming blocks not in chain."); in merge()
437 const BlockChain &Chain, const MachineBasicBlock *LoopHeaderBB,
443 const BlockChain &Chain, const MachineBasicBlock *BB,
449 const MachineBasicBlock *BB, const BlockChain &Chain,
460 BlockChain &Chain, BlockFilterSet *BlockFilter,
[all …]
/external/rust/crates/anyhow/src/
Dchain.rs8 pub(crate) use crate::Chain;
11 pub(crate) struct Chain<'a> { struct
26 impl<'a> Chain<'a> { impl
28 Chain { in new()
34 impl<'a> Iterator for Chain<'a> { implementation
56 impl DoubleEndedIterator for Chain<'_> { implementation
75 impl ExactSizeIterator for Chain<'_> { implementation
93 impl Default for Chain<'_> { implementation
95 Chain { in default()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
DARCISelLowering.cpp36 static SDValue lowerCallResult(SDValue Chain, SDValue InFlag,
198 SDValue Chain = Op.getOperand(0); in LowerBR_CC() local
206 return DAG.getNode(ARCISD::BRcc, dl, MVT::Other, Chain, Dest, LHS, RHS, in LowerBR_CC()
230 SDValue Chain = CLI.Chain; in LowerCall() local
255 Chain = DAG.getCALLSEQ_START(Chain, NumBytes, 0, dl); in LowerCall()
290 StackPtr = DAG.getCopyFromReg(Chain, dl, ARC::SP, in LowerCall()
298 DAG.getStore(Chain, dl, Arg, PtrOff, MachinePointerInfo()); in LowerCall()
307 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, MemOpChains); in LowerCall()
315 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first, in LowerCall()
317 Glue = Chain.getValue(1); in LowerCall()
[all …]
/external/llvm-project/llvm/lib/Target/ARC/
DARCISelLowering.cpp35 static SDValue lowerCallResult(SDValue Chain, SDValue InFlag,
197 SDValue Chain = Op.getOperand(0); in LowerBR_CC() local
205 return DAG.getNode(ARCISD::BRcc, dl, MVT::Other, Chain, Dest, LHS, RHS, in LowerBR_CC()
229 SDValue Chain = CLI.Chain; in LowerCall() local
254 Chain = DAG.getCALLSEQ_START(Chain, NumBytes, 0, dl); in LowerCall()
289 StackPtr = DAG.getCopyFromReg(Chain, dl, ARC::SP, in LowerCall()
297 DAG.getStore(Chain, dl, Arg, PtrOff, MachinePointerInfo()); in LowerCall()
306 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, MemOpChains); in LowerCall()
314 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first, in LowerCall()
316 Glue = Chain.getValue(1); in LowerCall()
[all …]
/external/llvm/lib/CodeGen/
DMachineBlockPlacement.cpp190 void merge(MachineBasicBlock *BB, BlockChain *Chain) { in merge() argument
195 if (!Chain) { in merge()
202 assert(BB == *Chain->begin()); in merge()
203 assert(Chain->begin() != Chain->end()); in merge()
207 for (MachineBasicBlock *ChainBB : *Chain) { in merge()
209 assert(BlockToChain[ChainBB] == Chain && "Incoming blocks not in chain"); in merge()
286 void markChainSuccessors(BlockChain &Chain, MachineBasicBlock *LoopHeaderBB,
289 collectViableSuccessors(MachineBasicBlock *BB, BlockChain &Chain,
293 BlockChain &Chain,
300 BranchProbability RealSuccProb, BlockChain &Chain,
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUExportClustering.cpp39 static void sortChain(const SIInstrInfo *TII, SmallVector<SUnit *, 8> &Chain, in sortChain() argument
41 if (!PosCount || PosCount == Chain.size()) in sortChain()
48 SmallVector<SUnit *, 8> Copy(Chain); in sortChain()
53 Chain[PosIdx++] = SU; in sortChain()
55 Chain[OtherIdx++] = SU; in sortChain()
111 SmallVector<SUnit *, 8> Chain; in apply() local
122 Chain.push_back(&SU); in apply()
134 if (Chain.size() > 1) { in apply()
135 sortChain(TII, Chain, PosCount); in apply()
136 buildCluster(Chain, DAG); in apply()
/external/llvm-project/clang/include/clang/Serialization/
DModuleManager.h51 SmallVector<std::unique_ptr<ModuleFile>, 2> Chain; variable
148 ModuleIterator begin() { return Chain.begin(); } in begin()
151 ModuleIterator end() { return Chain.end(); } in end()
154 ModuleConstIterator begin() const { return Chain.begin(); } in begin()
157 ModuleConstIterator end() const { return Chain.end(); } in end()
160 ModuleReverseIterator rbegin() { return Chain.rbegin(); } in rbegin()
163 ModuleReverseIterator rend() { return Chain.rend(); } in rend()
173 ModuleFile &getPrimaryModule() { return *Chain[0]; } in getPrimaryModule()
177 ModuleFile &getPrimaryModule() const { return *Chain[0]; } in getPrimaryModule()
180 ModuleFile &operator[](unsigned Index) const { return *Chain[Index]; }
[all …]
/external/llvm-project/flang/runtime/
Dunit-map.cpp15 Chain *previous{nullptr}; in LookUpForClose()
17 for (Chain *p{bucket_[hash].get()}; p; previous = p, p = p->next.get()) { in LookUpForClose()
33 Chain *p{nullptr}; in DestroyClosed()
36 Chain *previous{nullptr}; in DestroyClosed()
57 while (Chain * p{bucket_[j].get()}) { in CloseAll()
69 for (Chain *p{bucket_[j].get()}; p; p = p->next.get()) { in FlushAll()
79 for (Chain *p{bucket_[j].get()}; p; p = p->next.get()) { in Find()
90 Chain &chain{*New<Chain>{terminator}(n).release()}; in Create()

12345678910>>...18