/llvm-project/flang/lib/Optimizer/Builder/Runtime/ |
H A D | Reduction.cpp | 1 //===-- Reduction.cpp -- generate reduction intrinsics runtime calls- -----===// 19 using namespace Fortran::runtime; 28 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 32 fir::runtime::getModel<const Fortran::runtime::Descriptor &>()(ctx); in getTypeModel() 44 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 48 fir::runtime::getModel<const Fortran::runtime::Descriptor &>()(ctx); in getTypeModel() 61 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 65 fir::runtime in getTypeModel() [all...] |
H A D | Transformational.cpp | 2 // Generate transformational intrinsic runtime API calls. 21 using namespace Fortran::runtime; 26 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 30 fir::runtime::getModel<Fortran::runtime::Descriptor &>()(ctx); in getTypeModel() 42 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { 46 fir::runtime::getModel<Fortran::runtime::Descriptor &>()(ctx); in getTypeModel() 58 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { 61 fir::runtime in getTypeModel() [all...] |
H A D | Numeric.cpp | 1 //===-- Numeric.cpp -- runtime API for numeric intrinsics -----------------===// 18 using namespace Fortran::runtime; 22 // may not have them in their runtime library. This can occur in the 28 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 39 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 50 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 61 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 73 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 84 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 96 static constexpr fir::runtime [all...] |
H A D | TemporaryStack.cpp | 14 using namespace Fortran::runtime; 16 mlir::Value fir::runtime::genCreateValueStack(mlir::Location loc, in genCreateValueStack() 19 fir::runtime::getRuntimeFunc<mkRTKey(CreateValueStack)>(loc, builder); in genCreateValueStack() 24 auto args = fir::runtime::createArguments(builder, loc, funcType, sourceFile, in genCreateValueStack() 29 void fir::runtime::genPushValue(mlir::Location loc, fir::FirOpBuilder &builder, in genPushValue() 32 fir::runtime::getRuntimeFunc<mkRTKey(PushValue)>(loc, builder); in genPushValue() 34 auto args = fir::runtime::createArguments(builder, loc, funcType, opaquePtr, in genPushValue() 39 void fir::runtime::genValueAt(mlir::Location loc, fir::FirOpBuilder &builder, in genValueAt() 43 fir::runtime::getRuntimeFunc<mkRTKey(ValueAt)>(loc, builder); in genValueAt() 45 auto args = fir::runtime::createArguments(builder, loc, funcType, opaquePtr, in genValueAt() [all …]
|
H A D | Character.cpp | 18 using namespace Fortran::runtime; 34 auto args = fir::runtime::createArguments(builder, loc, fTy, resultBox, in genCharacterSearch() 73 auto args = fir::runtime::createArguments(builder, loc, fTy, resultBox, in genAdjust() 78 void fir::runtime::genAdjustL(fir::FirOpBuilder &builder, mlir::Location loc, in genAdjustL() 81 fir::runtime::getRuntimeFunc<mkRTKey(Adjustl)>(loc, builder); in genAdjustL() 85 void fir::runtime::genAdjustR(fir::FirOpBuilder &builder, mlir::Location loc, in genAdjustR() 88 fir::runtime::getRuntimeFunc<mkRTKey(Adjustr)>(loc, builder); in genAdjustR() 93 fir::runtime::genCharCompare(fir::FirOpBuilder &builder, mlir::Location loc, in genCharCompare() 100 beginFunc = fir::runtime::getRuntimeFunc<mkRTKey(CharacterCompareScalar1)>( in genCharCompare() 104 beginFunc = fir::runtime::getRuntimeFunc<mkRTKey(CharacterCompareScalar2)>( in genCharCompare() [all …]
|
H A D | Derived.cpp | 1 //===-- Derived.cpp -- derived type runtime API ---------------------------===// 17 using namespace Fortran::runtime; 19 void fir::runtime::genDerivedTypeInitialize(fir::FirOpBuilder &builder, in genDerivedTypeInitialize() 22 auto func = fir::runtime::getRuntimeFunc<mkRTKey(Initialize)>(loc, builder); in genDerivedTypeInitialize() 27 auto args = fir::runtime::createArguments(builder, loc, fTy, box, sourceFile, in genDerivedTypeInitialize() 32 void fir::runtime::genDerivedTypeInitializeClone(fir::FirOpBuilder &builder, in genDerivedTypeDestroy() 37 fir::runtime::getRuntimeFunc<mkRTKey(InitializeClone)>(loc, builder); in genDerivedTypeDestroy() 42 auto args = fir::runtime::createArguments(builder, loc, fTy, newBox, box, in genDerivedTypeFinalize() 47 void fir::runtime::genDerivedTypeDestroy(fir::FirOpBuilder &builder, in genDerivedTypeFinalize() 49 auto func = fir::runtime in genDerivedTypeFinalize() [all...] |
H A D | Inquiry.cpp | 1 //===-- Inquiry.h - generate inquiry runtime API calls ----------*- C++ -*-===// 15 using namespace Fortran::runtime; 17 /// Generate call to `Lbound` runtime routine when the DIM argument is present. 18 mlir::Value fir::runtime::genLboundDim(fir::FirOpBuilder &builder, in genLboundDim() 22 fir::runtime::getRuntimeFunc<mkRTKey(LboundDim)>(loc, builder); in genLboundDim() 27 auto args = fir::runtime::createArguments(builder, loc, fTy, array, dim, in genLboundDim() 32 void fir::runtime::genLbound(fir::FirOpBuilder &builder, mlir::Location loc, in genLbound() 36 fir::runtime::getRuntimeFunc<mkRTKey(Lbound)>(loc, builder); in genLbound() 41 auto args = fir::runtime::createArguments( in genLbound() 46 /// Generate call to `Ubound` runtime routin [all...] |
H A D | Assign.cpp | 14 using namespace Fortran::runtime; 16 void fir::runtime::genAssign(fir::FirOpBuilder &builder, mlir::Location loc, in genAssign() 18 auto func = fir::runtime::getRuntimeFunc<mkRTKey(Assign)>(loc, builder); in genAssign() 23 auto args = fir::runtime::createArguments(builder, loc, fTy, destBox, in genAssign() 28 void fir::runtime::genAssignPolymorphic(fir::FirOpBuilder &builder, in genAssignPolymorphic() 32 fir::runtime::getRuntimeFunc<mkRTKey(AssignPolymorphic)>(loc, builder); in genAssignPolymorphic() 37 auto args = fir::runtime::createArguments(builder, loc, fTy, destBox, in genAssignPolymorphic() 42 void fir::runtime::genAssignExplicitLengthCharacter(fir::FirOpBuilder &builder, in genAssignExplicitLengthCharacter() 47 fir::runtime::getRuntimeFunc<mkRTKey(AssignExplicitLengthCharacter)>( in genAssignExplicitLengthCharacter() 53 auto args = fir::runtime::createArguments(builder, loc, fTy, destBox, in genAssignExplicitLengthCharacter() [all …]
|
H A D | Intrinsics.cpp | 26 #define DEBUG_TYPE "flang-lower-runtime" 28 using namespace Fortran::runtime; 34 static constexpr fir::runtime::FuncTypeBuilderFunc getTypeModel() { in getTypeModel() 37 fir::runtime::getModel<const Fortran::runtime::Descriptor &>()(ctx); in getTypeModel() 38 auto strTy = fir::runtime::getModel<const char *>()(ctx); in getTypeModel() 39 auto intTy = fir::runtime::getModel<int>()(ctx); in getTypeModel() 47 mlir::Value fir::runtime::genAssociated(fir::FirOpBuilder &builder, 51 fir::runtime::getRuntimeFunc<mkRTKey(PointerIsAssociatedWith)>(loc, in genAssociated() 53 llvm::SmallVector<mlir::Value> args = fir::runtime in genAssociated() [all...] |
H A D | ArrayConstructor.cpp | 1 //===- ArrayConstructor.cpp - array constructor runtime API calls ---------===// 14 using namespace Fortran::runtime; 16 namespace fir::runtime { namespace 19 getModel<Fortran::runtime::ArrayConstructorVector &>() { in getModel() 22 } // namespace fir::runtime 24 mlir::Value fir::runtime::genInitArrayConstructorVector( in genInitArrayConstructorVector() 27 // Allocate storage for the runtime cookie for the array constructor vector. in genInitArrayConstructorVector() 43 fir::runtime::getRuntimeFunc<mkRTKey(InitArrayConstructorVector)>( in genInitArrayConstructorVector() 50 auto args = fir::runtime::createArguments(builder, loc, funcType, cookie, in genInitArrayConstructorVector() 57 void fir::runtime in genInitArrayConstructorVector() [all...] |
H A D | Command.cpp | 14 using namespace Fortran::runtime; 28 mlir::Value fir::runtime::genCommandArgumentCount(fir::FirOpBuilder &builder, in genCommandArgumentCount() 31 fir::runtime::getRuntimeFunc<mkRTKey(ArgumentCount)>(loc, builder); in genCommandArgumentCount() 35 mlir::Value fir::runtime::genGetCommand(fir::FirOpBuilder &builder, in genGetCommand() 40 fir::runtime::getRuntimeFunc<mkRTKey(GetCommand)>(loc, builder); in genGetCommand() 46 fir::runtime::createArguments(builder, loc, runtimeFuncTy, command, in genGetCommand() 51 mlir::Value fir::runtime::genGetPID(fir::FirOpBuilder &builder, in genGetPID() 54 fir::runtime::getRuntimeFunc<mkRTKey(GetPID)>(loc, builder); in genGetPID() 59 mlir::Value fir::runtime::genGetCommandArgument( in genGetCommandArgument() 63 fir::runtime::getRuntimeFunc<mkRTKey(GetCommandArgument)>(loc, builder); in genGetCommandArgument() [all …]
|
H A D | Support.cpp | 15 using namespace Fortran::runtime; 18 constexpr fir::runtime::TypeBuilderFunc 19 fir::runtime::getModel<Fortran::runtime::LowerBoundModifier>() { in getModel() 22 context, sizeof(Fortran::runtime::LowerBoundModifier) * 8); in getModel() 26 void fir::runtime::genCopyAndUpdateDescriptor(fir::FirOpBuilder &builder, in genCopyAndUpdateDescriptor() 33 fir::runtime::getRuntimeFunc<mkRTKey(CopyAndUpdateDescriptor)>(loc, in genCopyAndUpdateDescriptor() 37 fir::runtime::createArguments(builder, loc, fTy, to, from, newDynamicType, in genCopyAndUpdateDescriptor() 48 mlir::Value fir::runtime::genIsAssumedSize(fir::FirOpBuilder &builder, in genIsAssumedSize() 52 fir::runtime::getRuntimeFunc<mkRTKey(IsAssumedSize)>(loc, builder); in genIsAssumedSize() 54 auto args = fir::runtime::createArguments(builder, loc, fTy, box); in genIsAssumedSize()
|
/llvm-project/mlir/test/Dialect/Async/ |
H A D | runtime.mlir | 5 // CHECK: %0 = async.runtime.create : !async.token 6 %0 = async.runtime.create : !async.token 13 // CHECK: %0 = async.runtime.create : !async.value<f32> 14 %0 = async.runtime.create : !async.value<f32> 23 // CHECK: %[[V:.*]] = async.runtime.create_group %[[C]] : !async.group 24 %0 = async.runtime.create_group %c : !async.group 31 // CHECK: async.runtime.set_available %arg0 : !async.token 32 async.runtime.set_available %arg0 : !async.token 38 // CHECK: async.runtime.set_available %arg0 : !async.value<f32> 39 async.runtime.set_available %arg0 : !async.value<f32> [all …]
|
H A D | async-runtime-ref-counting-opt.mlir | 1 // RUN: mlir-opt %s -async-runtime-ref-counting-opt | FileCheck %s 7 // CHECK-NOT: async.runtime.add_ref 8 // CHECK-NOT: async.runtime.drop_ref 9 async.runtime.add_ref %arg0 {count = 1 : i64} : !async.token 10 async.runtime.drop_ref %arg0 {count = 1 : i64} : !async.token 17 // CHECK-NOT: async.runtime.add_ref 18 async.runtime.add_ref %arg0 {count = 1 : i64} : !async.token 21 // CHECK-NOT: async.runtime.drop_ref 22 async.runtime.drop_ref %arg0 {count = 1 : i64} : !async.token 29 // CHECK: async.runtime.await [all …]
|
H A D | async-runtime-ref-counting.mlir | 1 // RUN: mlir-opt %s -async-runtime-ref-counting | FileCheck %s 15 // CHECK: async.runtime.drop_ref %[[TOKEN]] {count = 1 : i64} 21 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token 22 // CHECK: async.runtime.drop_ref %[[TOKEN]] {count = 1 : i64} 23 %0 = async.runtime.create : !async.token 30 // CHECK: async.runtime.drop_ref %[[TOKEN]] {count = 1 : i64} 38 // CHECK: async.runtime.add_ref %[[TOKEN]] {count = 1 : i64} : !async.token 40 // CHECK: async.runtime.drop_ref %[[TOKEN]] {count = 1 : i64} : !async.token 46 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token 47 %0 = async.runtime.create : !async.token [all …]
|
H A D | async-runtime-policy-based-ref-counting.mlir | 1 // RUN: mlir-opt %s -async-runtime-policy-based-ref-counting | FileCheck %s 6 // CHECK: async.runtime.await %[[TOKEN]] 7 // CHECK-NOT: async.runtime.drop_ref 8 async.runtime.await %arg0 : !async.token 15 // CHECK: async.runtime.await %[[GROUP]] 16 // CHECK-NOT: async.runtime.drop_ref 17 async.runtime.await %arg0 : !async.group 25 // CHECK: async.runtime.add_to_group %[[TOKEN]], %[[GROUP]] 26 // CHECK: async.runtime.drop_ref %[[TOKEN]] {count = 1 : i64} 27 async.runtime.add_to_group %arg1, %arg0 : !async.token [all …]
|
H A D | async-to-async-runtime.mlir | 1 // RUN: mlir-opt %s -split-input-file -async-func-to-async-runtime \ 2 // RUN: -async-to-async-runtime | FileCheck %s --dump-input=always 20 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token 24 // Pass a suspended coroutine to the async runtime. 26 // CHECK: async.runtime.resume %[[HDL]] 33 // CHECK: async.runtime.set_available %[[TOKEN]] 67 // CHECK: async.runtime.await %[[TOKEN]] 68 // CHECK: %[[IS_ERROR:.*]] = async.runtime.is_error %[[TOKEN]] 81 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token 85 // CHECK: async.runtime.resume %[[HDL]] [all …]
|
/llvm-project/mlir/lib/ExecutionEngine/ |
H A D | AsyncRuntime.cpp | 28 using namespace mlir::runtime; 35 namespace runtime { namespace 124 RefCounted(AsyncRuntime *runtime, int64_t refCount = 1) in RefCounted() argument 125 : runtime(runtime), refCount(refCount) { in RefCounted() 126 runtime->addNumRefCountedObjects(); in RefCounted() 131 runtime->dropNumRefCountedObjects(); in ~RefCounted() 150 AsyncRuntime *runtime; member in mlir::runtime::__anone5fff9370111::RefCounted 158 static auto runtime = std::make_unique<AsyncRuntime>(); in getDefaultAsyncRuntimeInstance() local 159 return runtime; in getDefaultAsyncRuntimeInstance() 177 AsyncToken(AsyncRuntime *runtime) in AsyncToken() [all …]
|
/llvm-project/mlir/test/Conversion/AsyncToLLVM/ |
H A D | convert-runtime-to-llvm.mlir | 6 %0 = async.runtime.create : !async.token 16 %0 = async.runtime.create : !async.value<f32> 26 %0 = async.runtime.create_group %c: !async.group 33 %0 = async.runtime.create : !async.token 35 async.runtime.set_available %0 : !async.token 42 %0 = async.runtime.create : !async.value<f32> 44 async.runtime.set_available %0 : !async.value<f32> 51 %0 = async.runtime.create : !async.token 53 %1 = async.runtime.is_error %0 : !async.token 60 %0 = async.runtime.create : !async.value<f32> [all …]
|
/llvm-project/flang/unittests/Optimizer/Builder/Runtime/ |
H A D | NumericTest.cpp | 1 //===- NumericTest.cpp -- Numeric intrinsic runtime builder unit tests ----===// 19 mlir::Value exp = fir::runtime::genExponent(builder, loc, resultType, x); in testGenExponent() 44 testGenX(*firBuilder, f32Ty, fir::runtime::genFraction, "_FortranAFraction4"); in TEST_F() 45 testGenX(*firBuilder, f64Ty, fir::runtime::genFraction, "_FortranAFraction8"); in TEST_F() 47 *firBuilder, f80Ty, fir::runtime::genFraction, "_FortranAFraction10"); in TEST_F() 49 *firBuilder, f128Ty, fir::runtime::genFraction, "_FortranAFraction16"); in TEST_F() 57 mlir::Value nearest = fir::runtime::genNearest(builder, loc, x, s); in testGenNearest() 70 *firBuilder, f32Ty, fir::runtime::genRRSpacing, "_FortranARRSpacing4"); in TEST_F() 72 *firBuilder, f64Ty, fir::runtime::genRRSpacing, "_FortranARRSpacing8"); in TEST_F() 74 *firBuilder, f80Ty, fir::runtime in TEST_F() [all...] |
H A D | ReductionTest.cpp | 17 mlir::Value all = fir::runtime::genAll(*firBuilder, loc, undef, dim); in TEST_F() 26 fir::runtime::genAllDescriptor(*firBuilder, loc, result, mask, dim); in TEST_F() 34 mlir::Value any = fir::runtime::genAny(*firBuilder, loc, undef, dim); in TEST_F() 43 fir::runtime::genAnyDescriptor(*firBuilder, loc, result, mask, dim); in TEST_F() 51 mlir::Value count = fir::runtime::genCount(*firBuilder, loc, undef, dim); in TEST_F() 61 fir::runtime::genCountDim(*firBuilder, loc, result, mask, dim, kind); in TEST_F() 73 mlir::Value max = fir::runtime::genMaxval(builder, loc, undef, mask); in testGenMaxVal() 98 mlir::Value min = fir::runtime::genMinval(builder, loc, undef, mask); in testGenMinVal() 119 mlir::Value parity = fir::runtime::genParity(*firBuilder, loc, undef, dim); in TEST_F() 128 fir::runtime::genParityDescriptor(*firBuilder, loc, result, mask, dim); in TEST_F() [all …]
|
/llvm-project/clang/test/CodeGenObjCXX/ |
H A D | personality.mm | 1 …unknown-linux-gnu -fexceptions -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx-fragile -e… 2 …eptions -exception-model=dwarf -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx-fragile -e… 3 …xceptions -exception-model=seh -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx-fragile -e… 4 …ceptions -exception-model=sjlj -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx-fragile -e… 5 …unknown-linux-gnu -fexceptions -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx -emit-llvm… 6 …eptions -exception-model=dwarf -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx -emit-llvm… 7 …xceptions -exception-model=seh -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx -emit-llvm… 8 …ceptions -exception-model=sjlj -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=macosx -emit-llvm… 9 …unknown-linux-gnu -fexceptions -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=ios -emit-llvm %s… 10 …eptions -exception-model=dwarf -fobjc-exceptions -fcxx-exceptions -fobjc-runtime=ios -emit-llvm %s… [all …]
|
/llvm-project/clang/test/CodeGenObjC/ |
H A D | personality.m | 1 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=mac… 2 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=ios… 3 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=mac… 4 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=wat… 5 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=gnu… 6 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=gnu… 7 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=gcc… 8 …own-linux-gnu -fexceptions -exception-model=seh -fobjc-exceptions -fobjc-runtime=gcc -emit-llvm %s… 9 …wn-linux-gnu -fexceptions -exception-model=sjlj -fobjc-exceptions -fobjc-runtime=gcc -emit-llvm %s… 10 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=obj… [all …]
|
/llvm-project/mlir/include/mlir/Dialect/Async/ |
H A D | Passes.td | 29 "the value will be retrieved from the runtime.">, 44 def AsyncToAsyncRuntime : Pass<"async-to-async-runtime", "ModuleOp"> { 46 "the explicit async.runtime and async.coro operations"; 51 def AsyncFuncToAsyncRuntime : Pass<"async-func-to-async-runtime", "ModuleOp"> { 52 let summary = "Lower async.func operations to the explicit async.runtime and" 58 def AsyncRuntimeRefCounting : Pass<"async-runtime-ref-counting"> { 59 let summary = "Automatic reference counting for Async runtime operations"; 61 This pass works at the async runtime abtraction level, after all 63 runtime API calls, and async coroutine operations. 75 def AsyncRuntimeRefCountingOpt : Pass<"async-runtime-ref-counting-opt"> { [all …]
|
/llvm-project/mlir/test/mlir-cpu-runner/ |
H A D | async-error.mlir |
|