Lines Matching defs:intrinsic

1 //===- IntrinsicEmitter.cpp - Generate intrinsic information --------------===//
10 // This tablegen backend emits information about intrinsic functions.
75 // Emit the intrinsic ID -> name table.
78 // Emit the intrinsic ID -> overload table.
81 // Emit the intrinsic declaration generator.
84 // Emit the intrinsic parameter attributes.
136 OS << " // Note that entry #0 is the invalid intrinsic!\n";
150 // Add one to the index so we emit a null bit for the invalid #0 intrinsic.
157 // OTable contains a true bit at the position if the intrinsic is overloaded.
213 default: PrintFatalError("unhandled integer type width in intrinsic!");
224 default: PrintFatalError("unhandled MVT in intrinsic!");
311 default: PrintFatalError("unhandled vector type width in intrinsic!");
334 /// intrinsic into 32 bits, return it. If not, return ~0U.
368 // If we can compute a 32-bit fixed encoding for this intrinsic, do so and
378 // Get the signature for the intrinsic.
413 OS << "// Global intrinsic function declaration type table.\n";
494 const CodeGenIntrinsic &intrinsic = Ints[i];
496 std::max(maxArgAttrs, unsigned(intrinsic.ArgumentAttributes.size()));
497 unsigned &N = UniqAttributes[&intrinsic];
508 const CodeGenIntrinsic &intrinsic = Ints[i];
510 OS << " " << UniqAttributes[&intrinsic] << ", // "
511 << intrinsic.Name << "\n";
529 const CodeGenIntrinsic &intrinsic = *(I->first);
535 unsigned ai = 0, ae = intrinsic.ArgumentAttributes.size();
538 unsigned argNo = intrinsic.ArgumentAttributes[ai].first;
544 switch (intrinsic.ArgumentAttributes[ai].second) {
578 } while (ai != ae && intrinsic.ArgumentAttributes[ai].first == argNo);
585 if (!intrinsic.canThrow ||
586 intrinsic.ModRef != CodeGenIntrinsic::ReadWriteMem ||
587 intrinsic.isNoReturn || intrinsic.isNoDuplicate ||
588 intrinsic.isConvergent) {
591 if (!intrinsic.canThrow) {
595 if (intrinsic.isNoReturn) {
601 if (intrinsic.isNoDuplicate) {
607 if (intrinsic.isConvergent) {
614 switch (intrinsic.ModRef) {
693 OS << "// Get the LLVM intrinsic that corresponds to a builtin.\n";