Home
last modified time | relevance | path

Searched refs:Shape (Results 1 – 25 of 101) sorted by relevance

12345

/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp105 coro::Shape &Shape; member in __anone5e39db70111::CoroCloner
119 : OrigF(OrigF), NewF(nullptr), Suffix(Suffix), Shape(Shape), in CoroCloner()
127 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape), in CoroCloner()
1137 static void setCoroInfo(Function &F, coro::Shape &Shape, in setCoroInfo() argument
1168 Shape.FrameTy, Shape.FramePtr, coro::Shape::SwitchFieldIndex::Resume, in updateCoroFrame()
1182 Shape.FrameTy, Shape.FramePtr, coro::Shape::SwitchFieldIndex::Destroy, in updateCoroFrame()
1549 static void simplifySuspendPoints(coro::Shape &Shape) { in simplifySuspendPoints() argument
1910 coro::Shape Shape(F, OptimizeFrame); in splitCoroutine() local
1965 static void removeCoroEnds(const coro::Shape &Shape) { in removeCoroEnds() argument
1972 LazyCallGraph::Node &N, const coro::Shape &Shape, in updateCallGraphAfterCoroutineSplit() argument
[all …]
H A DCoroFrame.cpp109 SuspendCrossingInfo(Function &F, coro::Shape &Shape);
495 coro::Shape &Shape);
1210 Shape.FrameSize = alignTo(Shape.FrameSize, Shape.FrameAlign); in buildFrameType()
1520 static void createFramePtr(coro::Shape &Shape) { in createFramePtr() argument
2208 coro::Shape &Shape, in lowerNonLocalAlloca() argument
2233 coro::Shape &Shape) { in emitGetSwiftErrorValue() argument
2248 coro::Shape &Shape) { in emitSetSwiftErrorValue() argument
2296 coro::Shape &Shape) { in eliminateSwiftErrorAlloca() argument
2322 coro::Shape &Shape, in eliminateSwiftErrorArgument() argument
2649 void coro::buildCoroutineFrame(Function &F, Shape &Shape) { in buildCoroutineFrame() argument
[all …]
H A DCoroutines.cpp149 static void clear(coro::Shape &Shape) { in clear() argument
150 Shape.CoroBegin = nullptr; in clear()
151 Shape.CoroEnds.clear(); in clear()
152 Shape.CoroSizes.clear(); in clear()
153 Shape.CoroSuspends.clear(); in clear()
155 Shape.FrameTy = nullptr; in clear()
156 Shape.FramePtr = nullptr; in clear()
157 Shape.AllocaSpillBlock = nullptr; in clear()
172 void coro::Shape::buildFrom(Function &F) { in buildFrom()
447 Value *coro::Shape::emitAlloc(IRBuilder<> &Builder, Value *Size, in emitAlloc()
[all …]
H A DCoroInternal.h73 struct LLVM_LIBRARY_VISIBILITY Shape { struct
255 Shape() = default; argument
256 explicit Shape(Function &F, bool OptimizeFrame = false)
263 void buildCoroutineFrame(Function &F, Shape &Shape); argument
/llvm-project-15.0.7/clang/test/Analysis/
H A Dcast-value-logic.cpp12 struct Shape { struct
21 class Triangle : public Shape {};
22 class Rectangle : public Shape {};
23 class Hexagon : public Shape {};
24 class Circle : public Shape {
34 void test_regions_dyn_cast(const Shape *A, const Shape *B) { in test_regions_dyn_cast()
39 void test_regions_isa(const Shape *A, const Shape *B) { in test_regions_isa()
44 void test_regions_isa_variadic(const Shape *A, const Shape *B) { in test_regions_isa_variadic()
50 void test_regions_isa_and_nonnull(const Shape *A, const Shape *B) { in test_regions_isa_and_nonnull()
55 void test_regions_isa_and_nonnull_variadic(const Shape *A, const Shape *B) { in test_regions_isa_and_nonnull_variadic()
[all …]
H A Dcast-value-notes.cpp55 struct Shape { struct
62 class Triangle : public Shape {};
63 class Rectangle : public Shape {};
64 class Hexagon : public Shape {};
65 class Circle : public Shape {};
74 void evalReferences(const Shape &S) { in evalReferences()
85 void evalReferences_addrspace(const Shape &S) { in evalReferences_addrspace()
94 void evalReferences_addrspace(const Shape &S) { in evalReferences_addrspace()
106 void evalReferences(const Shape &S) { in evalReferences()
113 void evalReferences_addrspace(const Shape &S) { in evalReferences_addrspace()
[all …]
H A Dcast-value-state-dump.cpp10 struct Shape {}; struct
11 class Triangle : public Shape {};
12 class Circle : public Shape {};
13 class Square : public Shape {};
19 void evalNonNullParamNonNullReturn(const Shape *S) { in evalNonNullParamNonNullReturn()
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dshape.h36 using Shape = std::vector<MaybeExtentExpr>; variable
45 FoldingContext &, const Shape &);
50 FoldingContext &, const Shape &);
51 Shape AsShape(const ConstantSubscripts &);
56 Shape Fold(FoldingContext &, Shape &&);
57 std::optional<Shape> Fold(FoldingContext &, std::optional<Shape> &&);
88 Shape GetLBOUNDs(const NamedEntity &);
90 Shape GetUBOUNDs(const NamedEntity &);
108 MaybeExtentExpr GetSize(Shape &&);
117 using Result = std::optional<Shape>;
[all …]
H A Dcharacteristics.h56 bool ShapesAreCompatible(const Shape &, const Shape &);
68 TypeAndShape(DynamicType t, Shape &&s) : type_{t}, shape_{std::move(s)} { in TypeAndShape()
71 TypeAndShape(DynamicType t, std::optional<Shape> &&s) : type_{t} { in TypeAndShape()
143 const Shape &shape() const { return shape_; } in shape()
175 Shape shape_;
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DTileShapeInfo.h41 bool operator==(const ShapeT &Shape) const {
42 MachineOperand *R = Shape.Row;
43 MachineOperand *C = Shape.Col;
51 return RowImm == Shape.getRowImm() && ColImm == Shape.getColImm();
55 bool operator!=(const ShapeT &Shape) const { return !(*this == Shape); }
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dshape.cpp47 Shape result; in ConstantShape()
64 Shape result; in AsShapeResult()
80 Shape shape; in CreateShape()
137 Shape result; in AsShape()
152 Shape Fold(FoldingContext &context, Shape &&shape) { in Fold()
365 Shape result; in GetRawLowerBounds()
374 Shape result; in GetRawLowerBounds()
383 Shape result; in GetLBOUNDs()
392 Shape result; in GetLBOUNDs()
730 Shape shape; in operator ()()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTensorSpec.h56 const std::vector<int64_t> &Shape,
58 return TensorSpec(Name, Port, getDataType<T>(), sizeof(T), Shape);
64 const std::vector<int64_t> &shape() const { return Shape; } in shape()
68 Shape == Other.Shape;
86 size_t ElementSize, const std::vector<int64_t> &Shape);
93 std::vector<int64_t> Shape; variable
H A DVectorUtils.h124 VFShape Shape; /// Classification of the vector function. member
233 const Optional<VFInfo> Shape = in getVFABIMappings() local
239 if (Shape && (Shape.value().ScalarName == ScalarName)) { in getVFABIMappings()
240 assert(CI.getModule()->getFunction(Shape.value().VectorName) && in getVFABIMappings()
242 Mappings.push_back(Shape.value()); in getVFABIMappings()
268 Function *getVectorizedFunction(const VFShape &Shape) const { in getVectorizedFunction() argument
269 if (Shape == VFShape::getScalarShape(CI)) in getVectorizedFunction()
273 if (Info.Shape == Shape) in getVectorizedFunction()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DVectorUtilsTest.cpp506 Shape = VFShape::get(*CI, VF, HasGlobalPred); in buildShape()
510 Shape.Parameters = in validParams()
512 return Shape.hasValidParameterList(); in validParams()
523 EXPECT_EQ(Shape, Expected); in TEST_F()
532 EXPECT_EQ(Shape, Expected); in TEST_F()
540 EXPECT_EQ(Shape, Expected); in TEST_F()
545 EXPECT_EQ(VFShape::getScalarShape(*CI), Shape); in TEST_F()
570 EXPECT_EQ(Shape, Expected); in TEST_F()
580 EXPECT_EQ(Shape, Expected); in TEST_F()
588 EXPECT_EQ(Shape, Expected); in TEST_F()
[all …]
/llvm-project-15.0.7/lldb/test/API/functionalities/data-formatter/data-formatter-categories/
H A Dmain.cpp5 struct Shape struct
8 Shape() : dummy(true) {} in Shape() function
11 struct Rectangle : public Shape {
17 struct Circle : public Shape {
/llvm-project-15.0.7/llvm/docs/
H A DHowToSetUpLLVMStyleRTTI.rst33 class Shape {
35 Shape() {}
72 class Shape {
84 Shape() {}
99 ``Shape``. The reason for this is that since ``Shape`` is abstract
116 class Shape {
128 - Shape() {}
158 class Shape {
205 Shape *S = ...;
292 | Shape
[all …]
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/
H A DTransformationalTest.cpp16 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
28 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
39 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
52 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
64 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
75 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
87 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
100 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
112 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
122 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
H A DDerivedTest.cpp16 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
25 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in TEST_F()
H A DReductionTest.cpp69 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), eleTy); in testGenMaxVal()
94 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), eleTy); in testGenMinVal()
119 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), eleTy); in testGenSum()
151 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), eleTy); in testGenProduct()
184 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), eleTy); in testGenDotProduct()
219 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in checkGenMxxloc()
245 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in checkGenMxxlocDim()
274 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in checkGenMxxvalChar()
300 fir::SequenceType::get(fir::SequenceType::Shape(1, 10), i32Ty); in checkGen4argsDim()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTensorSpec.cpp39 size_t ElementSize, const std::vector<int64_t> &Shape) in SUPPORTED_TENSOR_TYPES()
40 : Name(Name), Port(Port), Type(Type), Shape(Shape), in SUPPORTED_TENSOR_TYPES()
41 ElementCount(std::accumulate(Shape.begin(), Shape.end(), 1, in SUPPORTED_TENSOR_TYPES()
/llvm-project-15.0.7/mlir/lib/Conversion/ShapeToStandard/
H A DShapeToStandard.td1 //==-- ShapeToStandard.td - Shape to Standard Patterns -------*- tablegen -*==//
9 // Defines Patterns to lower Shape ops to Std.
17 include "mlir/Dialect/Shape/IR/ShapeOps.td"
/llvm-project-15.0.7/clang/test/PCH/
H A Denum.h9 enum Shape { enum
16 enum Shape aRoundShape = Circle;
/llvm-project-15.0.7/mlir/docs/
H A DShapeInference.md1 # Shape Inference
3 Shape inference as discussed here is considered a specific instance of type
20 ## Shape functions
43 Shape inference is currently tested alongside type inference by
54 ## Shape dialect
87 #### Shape inference functions
111 * Shape functions usable by compiler and runtime.
131 * Shape inference functions are expressible at runtime
142 * Shape functions should be cheap to invoke on each kernel launch.
151 * Shape functions should be pure functions.
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Shape/IR/
H A DCMakeLists.txt6 Shape.cpp
9 ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Shape
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Ddebug-info-impl.m7 @interface Shape : NSObject interface
12 @interface Circle : Shape

12345