/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | SourceCodeTests.cpp | 40 Position position(int Line, int Character) { in position() function 103 EXPECT_THAT_EXPECTED(positionToOffset(File, position(-1, 2)), llvm::Failed()); in TEST() 105 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, -1)), in TEST() 107 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 0)), in TEST() 109 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 3)), in TEST() 111 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 6)), in TEST() 113 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 7)), in TEST() 115 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 7), false), in TEST() 117 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 8)), in TEST() 119 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 8), false), in TEST() [all …]
|
/llvm-project/clang/include/clang/AST/ |
H A D | FormatString.h | 41 void setPosition(const char *position) { in setPosition() argument 42 assert(position); in setPosition() 44 this->position = position; in setPosition() 47 assert(position); in getPosition() 48 return position; in getPosition() 60 const char *position; variable 554 void setHasThousandsGrouping(const char *position) { in setHasThousandsGrouping() argument 555 HasThousandsGrouping.setPosition(position); in setHasThousandsGrouping() 557 void setIsLeftJustified(const char *position) { in setIsLeftJustified() argument 558 IsLeftJustified.setPosition(position); in setIsLeftJustified() [all …]
|
/llvm-project/flang/lib/Parser/ |
H A D | parsing.cpp | 168 std::optional<SourcePosition> position{provenance in EmitPreprocessedSource() 171 if (lineDirectives && column == 1 && position) { in EmitPreprocessedSource() 172 if (&*position->path != sourcePath) { in EmitPreprocessedSource() 173 out << "#line \"" << *position->path << "\" " << position->line in EmitPreprocessedSource() 175 } else if (position->line != sourceLine) { in EmitPreprocessedSource() 176 if (sourceLine < position->line && in EmitPreprocessedSource() 177 sourceLine + 10 >= position->line) { in EmitPreprocessedSource() 181 while (sourceLine++ < position->line) { in EmitPreprocessedSource() 185 out << "#line " << position in EmitPreprocessedSource() 164 std::optional<SourcePosition> position{provenance EmitPreprocessedSource() local [all...] |
/llvm-project/libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/ |
H A D | post.pass.cpp | 77 assert((*i).position() == 0); in main() 80 assert((*i2).position() == 0); in main() 86 assert((*i).position() == 10); in main() 89 assert((*i2).position() == 0); in main() 95 assert((*i).position() == 20); in main() 98 assert((*i2).position() == 0); in main() 104 assert((*i2).position() == 0); in main() 115 assert((*i).position() == 0); in main() 118 assert((*i2).position() == 0); in main() 124 assert((*i).position() == 10); in main() [all …]
|
/llvm-project/clang/test/CodeGen/ |
H A D | ext-vector-member-alignment.c | 6 float4 position; member 10 float4 f(struct struct1* x) { return x->position; } in f() 13 p->position.x = c; in func() 14 *a = p->position.y; in func() 15 *b = p->position[0]; in func() 16 p->position[2] = c; in func()
|
/llvm-project/libcxx/test/std/re/re.results/re.results.acc/ |
H A D | position.pass.cpp | 25 assert(m.position() == std::distance(s, m[0].first)); in test() 26 assert(m.position(0) == std::distance(s, m[0].first)); in test() 27 assert(m.position(1) == std::distance(s, m[1].first)); in test() 28 assert(m.position(2) == std::distance(s, m[2].first)); in test() 29 assert(m.position(3) == std::distance(s, m[3].first)); in test() 30 assert(m.position(4) == std::distance(s, m[4].first)); in test()
|
/llvm-project/libcxx/test/std/re/re.alg/re.alg.search/ |
H A D | ecma.pass.cpp | 39 assert(m.position(0) == 0); in main() 54 assert(m.position(0) == 0); in main() 76 assert(m.position(0) == 1); in main() 98 assert(m.position(0) == 1); in main() 113 assert(m.position(0) == 0); in main() 128 assert(m.position(0) == 0); in main() 131 assert(m.position(1) == 2); in main() 146 assert(m.position(0) == 2); in main() 149 assert(m.position(1) == 4); in main() 152 assert(m.position(2) == 4); in main() [all …]
|
H A D | extended.pass.cpp | 39 assert(m.position(0) == 0); in main() 54 assert(m.position(0) == 0); in main() 76 assert(m.position(0) == 1); in main() 98 assert(m.position(0) == 1); in main() 113 assert(m.position(0) == 0); in main() 128 assert(m.position(0) == 0); in main() 131 assert(m.position(1) == 2); in main() 147 assert(m.position(0) == 2); in main() 150 assert(m.position(1) == 4); in main() 153 assert(m.position(2) == 4); in main() [all …]
|
H A D | awk.pass.cpp | 39 assert(m.position(0) == 0); in main() 54 assert(m.position(0) == 0); in main() 76 assert(m.position(0) == 1); in main() 98 assert(m.position(0) == 1); in main() 113 assert(m.position(0) == 0); in main() 128 assert(m.position(0) == 0); in main() 131 assert(m.position(1) == 2); in main() 147 assert(m.position(0) == 2); in main() 150 assert(m.position(1) == 4); in main() 153 assert(m.position(2) == 4); in main() [all …]
|
H A D | basic.pass.cpp | 45 assert(m.position(0) == 0); in main() 60 assert(m.position(0) == 0); in main() 82 assert(m.position(0) == 1); in main() 104 assert(m.position(0) == 1); in main() 119 assert(m.position(0) == 0); in main() 134 assert(m.position(0) == 0); in main() 137 assert(m.position(1) == 2); in main() 153 assert(m.position(0) == 2); in main() 156 assert(m.position(1) == 4); in main() 159 assert(m.position(2) == 4); in main() [all …]
|
H A D | backup.pass.cpp | 34 assert(it->position(0) == 0); in main() 38 assert(it->position(0) == 5); in main() 53 assert(it->position(0) == 0); in main() 57 assert(it->position(0) == 5); in main()
|
/llvm-project/libcxx/test/std/re/re.alg/re.alg.match/ |
H A D | ecma.pass.cpp | 39 assert(m.position(0) == 0); in main() 54 assert(m.position(0) == 0); in main() 95 assert(m.position(0) == 0); in main() 110 assert(m.position(0) == 0); in main() 113 assert(m.position(1) == 2); in main() 134 assert(m.position(0) == 0); in main() 161 assert(m.position(0) == 0); in main() 188 assert(m.position(0) == 0); in main() 203 assert(m.position(0) == 0); in main() 218 assert(m.position(0) == 0); in main() [all …]
|
H A D | extended.pass.cpp | 38 assert(m.position(0) == 0); in main() 53 assert(m.position(0) == 0); in main() 94 assert(m.position(0) == 0); in main() 109 assert(m.position(0) == 0); in main() 112 assert(m.position(1) == 2); in main() 134 assert(m.position(0) == 0); in main() 161 assert(m.position(0) == 0); in main() 188 assert(m.position(0) == 0); in main() 203 assert(m.position(0) == 0); in main() 218 assert(m.position(0) == 0); in main() [all …]
|
H A D | basic.pass.cpp | 45 assert(m.position(0) == 0); in main() 60 assert(m.position(0) == 0); in main() 101 assert(m.position(0) == 0); in main() 116 assert(m.position(0) == 0); in main() 119 assert(m.position(1) == 2); in main() 141 assert(m.position(0) == 0); in main() 168 assert(m.position(0) == 0); in main() 195 assert(m.position(0) == 0); in main() 210 assert(m.position(0) == 0); in main() 225 assert(m.position(0) == 0); in main() [all …]
|
H A D | awk.pass.cpp | 39 assert(m.position(0) == 0); in main() 54 assert(m.position(0) == 0); in main() 95 assert(m.position(0) == 0); in main() 110 assert(m.position(0) == 0); in main() 113 assert(m.position(1) == 2); in main() 135 assert(m.position(0) == 0); in main() 162 assert(m.position(0) == 0); in main() 189 assert(m.position(0) == 0); in main() 204 assert(m.position(0) == 0); in main() 219 assert(m.position(0) == 0); in main() [all …]
|
/llvm-project/clang/test/SemaObjCXX/ |
H A D | property-placement-new.mm | 5 int position; field 7 @property(nonatomic) int position; property 24 i.position = 42; 25 new (i.position) S; 26 new (i.position) TS<double>;
|
/llvm-project/mlir/lib/Dialect/Vector/Transforms/ |
H A D | LowerVectorInterleave.cpp | 65 for (auto position : *unrollIterator) { in matchAndRewrite() 66 Value extractLhs = rewriter.create<ExtractOp>(loc, op.getLhs(), position); in matchAndRewrite() 67 Value extractRhs = rewriter.create<ExtractOp>(loc, op.getRhs(), position); in matchAndRewrite() 70 result = rewriter.create<InsertOp>(loc, interleave, result, position); in matchAndRewrite() 131 for (auto position : *unrollIterator) { in matchAndRewrite() 133 rewriter.create<vector::ExtractOp>(loc, op.getSource(), position); in matchAndRewrite() 137 loc, deinterleave.getRes1(), evenResult, position); in matchAndRewrite() 139 oddResult, position); in matchAndRewrite()
|
/llvm-project/mlir/lib/Conversion/PDLToPDLInterp/ |
H A D | PredicateTree.h | 33 : position(pos), question(predicate.first), answer(predicate.second) {} in PositionalPredicate() 36 Position *position; member 63 Position *getPosition() const { return position; } in getPosition() 82 MatcherNode(TypeID matcherTypeID, Position *position = nullptr, 88 Position *position; 110 BoolNode(Position *position, Qualifier *question, Qualifier *answer, 185 SwitchNode(Position *position, Qualifier *question);
|
/llvm-project/clang/test/CodeGenObjCXX/ |
H A D | property-placement-new.mm | 3 // CHECK: [[NAME:@.*]] = private unnamed_addr constant [9 x i8] c"position\00" 7 int position; field 9 @property(nonatomic) int position; property 27 i.position = 42; 37 new (i.position) S; 44 new (i.position) TS<double>;
|
/llvm-project/mlir/lib/Dialect/Linalg/TransformOps/ |
H A D | LinalgMatchOps.cpp | 174 if (std::optional<uint64_t> position = getReductionPosition()) { in matchOperation() local 176 if (!matchReduction(linalgOp.getRegionOutputArgs(), *position, in matchOperation() 446 for (int64_t position : positions) { in matchOperation() local 448 linalgOp.getMatchingIndexingMap(linalgOp.getDpsInputOperand(position)); in matchOperation() 451 << position << " is not a permutation"; in matchOperation() 455 << "the indexing map for input #" << position in matchOperation() 468 Value operand = linalgOp.getDpsInputOperand(position)->get(); in matchOperation() 477 << "input #" << position << " is not produced by an operation"; in matchOperation() 537 for (int64_t position : positions) { in matchOperation() local 539 linalgOp.getMatchingIndexingMap(linalgOp.getDpsInitOperand(position)); in matchOperation() 647 int64_t position; matchOperation() local 681 getPositionFor(linalg::LinalgOp op,int64_t & position) getPositionFor() argument [all...] |
/llvm-project/clang/test/CoverageMapping/ |
H A D | classtemplate.cpp | 22 double get(TT position) const { // FIXME-GETTER: File 0, [[@LINE]]:33 -> [[@LINE+2]]:4 = 0 in get() 23 return bases[position]; in get() 26 void set(TT position, double value) { // CHECK-SETTER: File 0, [[@LINE]]:39 -> [[@LINE+2]]:4 = #0 in set() argument 27 bases[position] = value; in set() 35 double get(unsigned position) const { // CHECK-GETTER: File 0, [[@LINE]]:39 -> [[@LINE+2]]:4 = 0 in get()
|
/llvm-project/mlir/test/mlir-pdll-lsp-server/ |
H A D | inlay-hints.test | 26 // CHECK-NEXT: "position": { 36 // CHECK-NEXT: "position": { 46 // CHECK-NEXT: "position": { 56 // CHECK-NEXT: "position": { 66 // CHECK-NEXT: "position": { 88 // CHECK-NEXT: "position": { 98 // CHECK-NEXT: "position": {
|
/llvm-project/llvm/test/MC/Mips/ |
H A D | elf_eflags.s | 26 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r6 -tar… 29 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r6 -tar… 32 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r2 -tar… 33 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r3 -tar… 34 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r5 -tar… 37 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r2 -tar… 38 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r3 -tar… 39 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r5 -tar… 42 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64 -targe… 45 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64 -targe… [all …]
|
/llvm-project/mlir/lib/Dialect/Transform/Transforms/ |
H A D | InterpreterPass.cpp | 77 for (auto &&[position, nameString] : in parseArguments() 94 trailingBindings[position].push_back( in parseArguments() 106 for (auto &&[position, name] : llvm::enumerate(debugBindNames)) { in parseArguments() 110 if (StringRef(*std::next(debugBindTrailingArgs.begin(), position)) in parseArguments() 112 llvm::append_range(trailingBindings[position], payload->getResults()); in parseArguments() 114 trailingBindings[position].push_back(payload); in parseArguments()
|
/llvm-project/clang/utils/ |
H A D | FuzzTest | 33 def position_to_source_index(self, position): argument 36 if position < n: 37 return (i,position) 38 position -= n 53 index,position = divmod(index, self.num_positions) 54 position = self.position_to_source_index(position) 57 return ('delete', position, None, picked_position) 64 return ('insert', position, insert_str, picked_position) 69 return ('replace', position, insert_str, picked_position)
|