Lines Matching defs:context
89 /// an MLIR context for initialization.
130 /// context.
153 /// the chances of data races one some context APIs.
175 /// In case where the thread pool is owned by the context, this ensures
176 /// destruction with the context.
193 /// This is a list of dialects that are created referring to this context.
219 /// cannot use `StringAttr` as the key. The context does not take ownership
220 /// of the key, so the `StringRef` must outlive the context.
246 /// cannot use `StringAttr` as the key. The context does not take ownership
247 /// of the key, so the `StringRef` must outlive the context.
305 // the context when accessing them.
390 /// Returns the diagnostic engine for this context.
403 "multi-threaded execution context");
452 /// the dialect owned by the context.
467 ") while in a multi-threaded execution context (maybe "
537 ") while in a multi-threaded execution context (maybe "
575 "while in a multi-threaded execution context");
579 /// Return true if multi-threading is enabled by the context.
584 /// Set the flag specifying if multi-threading is disabled by the context.
592 "in a multi-threaded execution context");
640 "expected multi-threading to be enabled within the context");
668 "a multi-threaded execution context");
683 "while in a multi-threaded execution context");
721 auto &impl = context->getImpl();
724 "context");
736 auto &impl = context->getImpl();
739 "context");
756 MLIRContext *context) {
757 const AbstractAttribute *abstract = lookupMutable(typeID, context);
765 MLIRContext *context) {
766 auto &impl = context->getImpl();
771 AbstractAttribute::lookup(StringRef name, MLIRContext *context) {
772 MLIRContextImpl &impl = context->getImpl();
789 OperationName::OperationName(StringRef name, MLIRContext *context) {
790 MLIRContextImpl &ctxImpl = context->getImpl();
793 bool isMultithreadingEnabled = context->isMultithreadingEnabled();
817 auto nameAttr = StringAttr::get(context, name);
952 "context");
994 const AbstractType &AbstractType::lookup(TypeID typeID, MLIRContext *context) {
995 const AbstractType *type = lookupMutable(typeID, context);
1002 AbstractType *AbstractType::lookupMutable(TypeID typeID, MLIRContext *context) {
1003 auto &impl = context->getImpl();
1008 AbstractType::lookup(StringRef name, MLIRContext *context) {
1009 MLIRContextImpl &impl = context->getImpl();
1025 BFloat16Type BFloat16Type::get(MLIRContext *context) {
1026 return context->getImpl().bf16Ty;
1028 Float16Type Float16Type::get(MLIRContext *context) {
1029 return context->getImpl().f16Ty;
1031 FloatTF32Type FloatTF32Type::get(MLIRContext *context) {
1032 return context->getImpl().tf32Ty;
1034 Float32Type Float32Type::get(MLIRContext *context) {
1035 return context->getImpl().f32Ty;
1037 Float64Type Float64Type::get(MLIRContext *context) {
1038 return context->getImpl().f64Ty;
1040 Float80Type Float80Type::get(MLIRContext *context) {
1041 return context->getImpl().f80Ty;
1043 Float128Type Float128Type::get(MLIRContext *context) {
1044 return context->getImpl().f128Ty;
1048 IndexType IndexType::get(MLIRContext *context) {
1049 return context->getImpl().indexTy;
1053 /// context.
1057 MLIRContext *context) {
1063 return context->getImpl().int1Ty;
1065 return context->getImpl().int8Ty;
1067 return context->getImpl().int16Ty;
1069 return context->getImpl().int32Ty;
1071 return context->getImpl().int64Ty;
1073 return context->getImpl().int128Ty;
1079 IntegerType IntegerType::get(MLIRContext *context, unsigned width,
1081 if (auto cached = getCachedIntegerType(width, signedness, context))
1083 return Base::get(context, width, signedness);
1088 MLIRContext *context, unsigned width,
1090 if (auto cached = getCachedIntegerType(width, signedness, context))
1092 return Base::getChecked(emitError, context, width, signedness);
1096 NoneType NoneType::get(MLIRContext *context) {
1097 if (NoneType cachedInst = context->getImpl().noneType)
1101 return Base::get(context);
1121 BoolAttr BoolAttr::get(MLIRContext *context, bool value) {
1122 return value ? context->getImpl().trueAttr : context->getImpl().falseAttr;
1125 UnitAttr UnitAttr::get(MLIRContext *context) {
1126 return context->getImpl().unitAttr;
1129 UnknownLoc UnknownLoc::get(MLIRContext *context) {
1130 return context->getImpl().unknownLocAttr;
1134 detail::DistinctAttributeUniquer::allocateStorage(MLIRContext *context,
1136 return context->getImpl().distinctAttributeAllocator.allocate(referencedAttr);
1140 DictionaryAttr DictionaryAttr::getEmpty(MLIRContext *context) {
1141 return context->getImpl().emptyDictionaryAttr;
1144 void StringAttrStorage::initialize(MLIRContext *context) {
1154 if ((referencedDialect = context->getLoadedDialect(dialectNamePair.first)))
1157 MLIRContextImpl &impl = context->getImpl();
1163 StringAttr StringAttr::get(MLIRContext *context) {
1164 return context->getImpl().emptyStringAttr;
1177 MLIRContext *context) {
1178 auto &impl = context->getImpl();
1180 [&](AffineMapStorage *storage) { storage->context = context; }, dimCount,
1208 AffineMap AffineMap::get(MLIRContext *context) {
1209 return getImpl(/*dimCount=*/0, /*symbolCount=*/0, /*results=*/{}, context);
1213 MLIRContext *context) {
1214 return getImpl(dimCount, symbolCount, /*results=*/{}, context);
1224 ArrayRef<AffineExpr> results, MLIRContext *context) {
1226 return getImpl(dimCount, symbolCount, results, context);