CIRCT
18.0.0git
|
Functions | |
Direction | get (bool isOutput) |
Returns an output direction if isOutput is true, otherwise returns an input direction. More... | |
IntegerAttr | packAttribute (MLIRContext *context, size_t nIns, size_t nOuts) |
Returns an IntegerAttr containing the packed representation of the direction counts. More... | |
Direction circt::calyx::direction::get | ( | bool | isOutput | ) |
Returns an output direction if isOutput
is true, otherwise returns an input direction.
Definition at line 53 of file CalyxOps.cpp.
Referenced by addAnnotation(), circt::firrtl::AnnotationSet::addAnnotations(), circt::hw::HWSymbolCache::addDefinition(), circt::firrtl::AnnotationSet::addDontTouch(), addHierarchy(), circt::firrtl::addPortsToModule(), circt::ExportVerilog::GlobalNameTable::addRenamedParam(), circt::analysis::CyclicSchedulingAnalysis::analyzeForOp(), append(), appendArrayAttr(), circt::calyx::appendPortsForExternalMemref(), applyAttributeAnnotation(), circt::firrtl::applyGCTDataTaps(), circt::firrtl::applyGCTMemTaps(), circt::firrtl::applyGCTView(), applyLoadMemoryAnno(), circt::calyx::applyModuleOpConversion(), circt::firrtl::applyOMIR(), applyToDictionaryAttrImpl(), applyToPort(), circt::firrtl::applyTraceName(), applyWithoutTargetImpl(), arrayOrEmpty(), circt::pipelinetocalyx::buildAllocOp(), circt::scftocalyx::buildAllocOp(), circt::pipelinetocalyx::BuildControl::buildCFGControl(), circt::scftocalyx::BuildControl::buildCFGControl(), buildComponentLike(), circt::esi::capnp::detail::CapnpTypeSchemaImpl::buildEncoder(), buildModule(), LowerGroupsPass::buildNewModule(), buildNLA(), ResolveTracesPass::buildTarget(), circt::pipelinetocalyx::BuildControl::buildWhileCtrlOp(), circt::scftocalyx::BuildControl::buildWhileCtrlOp(), CallPrepPrecomputed::CallPrepPrecomputed(), circt::sv::CaseBitPattern::CaseBitPattern(), circt::sv::CaseDefaultPattern::CaseDefaultPattern(), chirrtlTypeGetCMemoryPort(), circtESIAnyTypeGet(), circtESIAppIDAttrGet(), circtESIAppIDAttrPathGet(), circtESIChannelTypeGet(), circtESIListTypeGet(), circtMSFTLocationVectorAttrGet(), circtMSFTPhysicalBoundsAttrGet(), circtMSFTPhysLocationAttrGet(), collectFields(), constFoldAssociativeOp(), constFoldBinaryOp(), constFoldTernaryOp(), constFoldUnaryOp(), constructUniqueSymbol(), convertArrayType(), convertExtMemoryOps(), convertFunctionType(), convertModuleOpTypes(), convertModuleType(), convertPtrType(), convertSigType(), convertTimeType(), convertType(), circt::FirMemLowering::createMemoryModule(), createModuleForCut(), Deduper::createNLAs(), createPort(), createSplitOutputFile(), createSubSig(), createZeroValue(), customTypeParser(), circt::esi::detail::ESIHWBuilder::declareCosimEndpointOp(), decomposeAddend(), Deduper::dedup(), circt::msft::TclEmitter::emit(), circt::firrtl::emitConnect(), emitDims(), emitServiceMetadata(), Equivalence::Equivalence(), eraseInternalPaths(), erasePort(), erasePorts(), circt::esi::ESIAPIType::ESIAPIType(), circt::handshake::esiWrapper(), circt::om::Evaluator::evaluateMapCreate(), circt::esi::exportCosimSchema(), exportSplitVerilogImpl(), exportVerilogImpl(), extractConcatToConcatExtract(), HWExportModuleHierarchyPass::extractHierarchyFromTop(), circt::moore::detail::DimStorage::finalize(), firrtlAttrGetConvention(), firrtlAttrGetEventControl(), firrtlAttrGetMemDir(), firrtlAttrGetMemInit(), firrtlAttrGetNameKind(), firrtlAttrGetParamDecl(), firrtlAttrGetRUW(), firrtlTypeGetAnalog(), firrtlTypeGetAsyncReset(), firrtlTypeGetBundle(), firrtlTypeGetClock(), firrtlTypeGetReset(), firrtlTypeGetSInt(), firrtlTypeGetVector(), flattenOpsOfType(), foldBinaryOp(), foldCreateToSlice(), foldUnaryOp(), circt::firrtl::foldWhenEncodedVerifOp(), circt::msft::PrimitiveDB::foreach(), forPort(), circt::ExportVerilog::GlobalNameResolver::gatherEnumPrefixes(), circt::ExportVerilog::SharedEmitterState::gatherFiles(), genValueNameAttr(), gepPersistenceState(), circt::moore::NamedTypeBase< ConcreteTy, BaseTy >::get(), circt::moore::VoidType::get(), circt::moore::StringType::get(), circt::moore::ChandleType::get(), circt::moore::EventType::get(), circt::systemc::IntBaseType::get(), circt::systemc::UIntBaseType::get(), circt::systemc::SignedType::get(), circt::systemc::UnsignedType::get(), circt::systemc::BitVectorBaseType::get(), circt::systemc::LogicVectorBaseType::get(), circt::StringAttrOrRef::get(), circt::firrtl::IntType::get(), circt::moore::RealType::get(), circt::moore::IntType::get(), circt::systemc::IntType::get(), circt::systemc::UIntType::get(), circt::systemc::BigIntType::get(), circt::systemc::BigUIntType::get(), circt::systemc::BitVectorType::get(), circt::systemc::LogicVectorType::get(), circt::moore::PackedUnsizedDim::get(), circt::moore::PackedRangeDim::get(), circt::moore::EnumType::get(), circt::moore::UnpackedStructType::get(), circt::moore::PackedStructType::get(), circt::moore::UnpackedUnsizedDim::get(), circt::moore::UnpackedRangeDim::get(), circt::moore::UnpackedQueueDim::get(), circt::moore::UnpackedAssocDim::get(), circt::moore::UnpackedArrayDim::get(), getAnnotationsFrom(), circt::calyx::getCiderSourceLocationMetadata(), circt::esi::detail::ESIHWBuilder::getClockType(), getElementTypeOfWidth(), circt::om::evaluator::ObjectValue::getFieldNames(), circt::firrtl::detail::getForceableResultType(), getGlobalString(), getHWParameters(), circt::hw::HWSymbolCache::getInnerDefinition(), circt::firrtl::getInnerRefTo(), circt::hw::ModulePortLookupInfo::getInputPortIndex(), circt::firrtl::detail::getInstanceTypeForClassLike(), getIntAttr(), circt::firrtl::getIntAttr(), circt::om::evaluator::MapValue::getKeys(), getLLVMSigType(), getMachinePortInfo(), getMainBufferNameIdentifier(), circt::calyx::getMandatoryPortAttr(), circt::firrtl::FIRRTLBaseType::getMaskType(), getMemoryRead(), getMemTypeForExtmem(), circt::hw::getModuleType(), getNameForPort(), circt::parsing_util::getNameFromSSA(), circt::firrtl::OpAnnoTarget::getNLAReference(), getOneOfType(), circt::firrtl::HierPathCache::getOpFor(), circt::firrtl::getOrAddInnerSym(), circt::FirMemLowering::getOrCreateSchema(), circt::scheduling::Problem::getOrInsertOperatorType(), circt::hw::ModulePortLookupInfo::getOutputPortIndex(), PipelineLowering::getPipelineBaseName(), circt::handshake::getPortInfoForOpTypes(), getPortList(), LowerXMRPass::getRefABIMacroForPort(), circt::firrtl::HierPathCache::getRefFor(), getRegStateTy(), circt::ExportVerilog::FieldNameResolver::getRenamedFieldName(), getSignalDetail(), circt::esi::detail::ESIHWBuilder::getStageParameterList(), CallPrepPrecomputed::getSymbol(), circt::om::evaluator::ObjectValue::getType(), circt::firrtl::FIRRTLBaseType::getWidthlessType(), LowerXMRPass::handlePublicModuleRefPorts(), LowerXMRPass::handleRefResolve(), hwArrayTypeGet(), hwInnerRefAttrGet(), hwInnerSymAttrGet(), hwInOutTypeGet(), hwModuleTypeGet(), hwParamDeclAttrGet(), hwParamDeclRefAttrGet(), hwParamIntTypeGet(), hwParamVerbatimAttrGet(), hwStructTypeGet(), hwTypeAliasTypeGet(), improveNamehint(), indexToMemAddr(), inferAndLikeReturnTypes(), circt::firrtl::impl::inferBitwiseResult(), circt::firrtl::impl::inferComparisonResult(), circt::firrtl::impl::inferElementwiseResult(), circt::inferImplicitSSAName(), inferMuxReturnType(), circt::firrtl::impl::inferReductionResult(), inferReturnTypesOfStructExtractOp(), circt::ExportVerilog::inferStructuralNameForTemporary(), inlineInputOnly(), insertComparisonBlock(), insertPersistence(), insertPorts(), instantiateCosimEndpointOps(), instantiateSystemVerilogMemory(), isSelfWrite(), legalizeHWModule(), circt::ExportVerilog::GlobalNameResolver::legalizeInterfaceNames(), legalizeModuleLocalNames(), circt::ExportVerilog::GlobalNameResolver::legalizeModuleNames(), llhdPointerTypeGet(), llhdSignalTypeGet(), llhdTimeAttrGet(), llhdTimeTypeGet(), circt::ssp::loadOperatorType(), circt::ssp::loadProblem(), circt::hw::InnerSymbolTable::lookup(), circt::hw::InnerSymbolTable::lookupOp(), lookupSymbolInNested(), circt::FirRegLowering::lower(), lowerBoundaryVector(), lowerCirctLTLDelay(), lowerInternalPathAnno(), circt::firrtl::lowerType(), circt::firrtl::mapBaseType(), circt::firrtl::mapBaseTypeNullable(), FIntegerConstantOpConversion::matchAndRewrite(), ObjectSubfieldOpConversion::matchAndRewrite(), PathOpConversion::matchAndRewrite(), circt::TypeConversionPattern::matchAndRewrite(), StringConstantOpConversion::matchAndRewrite(), circt::firrtl::maybeStringToLocation(), mergeConcatSlices(), mergeLoc(), mergeNeiboringAssignments(), mlirMSFTAddPhysLocationAttr(), modifyModuleArgs(), circt::hw::modifyModulePorts(), moveVerifAnno(), circt::firrtl::ApplyState::newID(), omEvaluatorListGetElement(), omEvaluatorListGetNumElements(), omEvaluatorMapGetElement(), omEvaluatorMapGetKeys(), omEvaluatorMapGetType(), omEvaluatorObjectGetField(), omEvaluatorObjectGetFieldNames(), omEvaluatorObjectGetType(), omEvaluatorTupleGetElement(), omEvaluatorTupleGetNumElements(), omEvaluatorValueGetPrimitive(), omEvaluatorValueIsAList(), omEvaluatorValueIsAMap(), omEvaluatorValueIsAObject(), omEvaluatorValueIsAPrimitive(), omEvaluatorValueIsATuple(), omIntegerAttrGet(), omStringTypeGet(), circt::firrtl::direction::packAttribute(), packAttribute(), mlir::FieldParser<::BundledChannel, ::BundledChannel >::parse(), parseArrayConcatTypes(), parseCHIRRTLOp(), parseClassLike(), parseComponentInterface(), parseComponentSignature(), parseCompReg(), parseEnumFields(), parseFunctionResultList(), parseHWModuleOp(), parseIfaceTypeAndSignal(), parseImplicitInnerRef(), circt::parseInputPortList(), parseIntegerOrBitVector(), circt::parseKeywordBool(), parseListOptionalRegLocList(), parseLValueType(), parseMemoryAccessOp(), parseMethodLikeOp(), parseModportStructs(), circt::hw::module_like_impl::parseModuleFunctionSignature(), parseModulePorts(), circt::hw::module_like_impl::parseModuleSignature(), parseNameKind(), FIRParser::LocWithInfo::parseOptionalInfo(), circt::parseOptionalParameterList(), parseOutputList(), circt::parseOutputPortList(), parseParameterList(), parsePhysLoc(), parsePipelineOp(), parseScopeRefFromName(), parseSliceTypes(), parseSubfieldLikeOp(), circt::pipelinetocalyx::FuncOpConversion::partiallyLowerFuncToComp(), circt::scftocalyx::FuncOpConversion::partiallyLowerFuncToComp(), circt::msft::PlacementDB::placeIn(), circt::firtool::populateCHIRRTLToLowFIRRTL(), populateTypeConversion(), populateTypeConverter(), HWExportModuleHierarchyPass::printHierarchy(), printIfaceTypeAndSignal(), printImplicitInnerRef(), printModuleOp(), Deduper::recordSymRenames(), circt::firrtl::AnnotationSet::removeAnnotations(), circt::firrtl::AnnotationSet::removePortAnnotations(), circt::HWArithToHWTypeConverter::removeSignedness(), replaceArrayAttrElement(), replaceInnerRefUsers(), Deduper::replaceInstances(), resizeType(), CallPrepPrecomputed::resolveInstancePath(), LowerXMRPass::resolveReferencePath(), ModuleNameSanitizer::rewrite(), AnnotationRemover::rewrite(), DetachSubaccesses::rewrite(), ModuleInternalNameSanitizer::rewrite(), LowerGroupsPass::runOnModule(), circt::pipelinetocalyx::LoopScheduleToCalyxPass::runOnOperation(), circt::scftocalyx::SCFToCalyxPass::runOnOperation(), HWExportModuleHierarchyPass::runOnOperation(), scatterOMField(), scatterOMIR(), scatterOMNode(), circt::scftocalyx::BuildControl::scheduleBasicBlock(), seqClockTypeGet(), setAllPortLocs(), setAllPortNames(), circt::LoweringOptions::setAsAttribute(), setHWModuleType(), circt::firrtl::Annotation::setMember(), shiftArraySigPointer(), shiftIntegerSigPointer(), shiftStructuredSigPointer(), simplifyAdd(), simplifyModS(), simplifyModU(), simplifyMul(), simplifyShl(), simplifyStrConcat(), StructuralHasherSharedConstants::StructuralHasherSharedConstants(), svSVAttributeAttrGet(), toESIHWType(), toHWType(), circt::handshake::toValidType(), circt::firrtl::FIRLexer::translateLocation(), tryEliminatingAttachesToAnalogValue(), tupleToStruct(), circt::handshake::tupleToStruct(), uniqueInNamespace(), circt::ExportVerilog::OpLocMap::updateIRWithLoc(), updateModuleInstanceClass(), circt::hw::instance_like_impl::updateName(), updateNameAttribute(), updateObjectInstance(), updateType(), validateRequest(), verifyFirMemMask(), circt::hw::instance_like_impl::verifyInstanceOfHWModule(), CompileControlVisitor::visit(), wrap(), wrapPortType(), and zextByOne().
IntegerAttr circt::calyx::direction::packAttribute | ( | MLIRContext * | context, |
size_t | nIns, | ||
size_t | nOuts | ||
) |
Returns an IntegerAttr containing the packed representation of the direction counts.
Direction::Input is zero, and Direction::Output is one.
Definition at line 57 of file CalyxOps.cpp.
References get().
Referenced by buildComponentLike(), and parseComponentSignature().