Lines Matching defs:constants

301 /// provided in `constants`. `shape` contains the number of elements in nested
304 buildSequentialConstant(ArrayRef<llvm::Constant *> &constants,
308 llvm::Constant *result = constants.front();
309 constants = constants.drop_front();
326 nested.push_back(buildSequentialConstant(constants, shape.drop_front(),
402 SmallVector<llvm::Constant *> constants(numAggregates, splatVector);
403 ArrayRef<llvm::Constant *> constantsRef = constants;
434 // Create innermost constants and defer to the default constant creation
436 SmallVector<llvm::Constant *> constants;
439 constants.reserve(numAggregates);
443 constants.push_back(buildCstData(data));
446 ArrayRef<llvm::Constant *> constantsRef = constants;
528 // Create innermost constants and defer to the default constant creation
530 SmallVector<llvm::Constant *> constants;
533 constants.reserve(numAggregates);
536 constants.push_back(buildCstData(data));
539 ArrayRef<llvm::Constant *> constantsRef = constants;
641 SmallVector<int8_t> constants(numElements, ci->getZExtValue());
643 constants);
646 SmallVector<int16_t> constants(numElements, ci->getZExtValue());
648 constants);
651 SmallVector<int32_t> constants(numElements, ci->getZExtValue());
653 constants);
656 SmallVector<int64_t> constants(numElements, ci->getZExtValue());
658 constants);
665 std::vector<llvm::Constant *> constants(numElements, child);
666 return llvm::ConstantArray::get(arrayType, constants);
689 SmallVector<llvm::Constant *, 8> constants;
690 constants.reserve(elementsAttr.getNumElements());
693 constants.push_back(
695 if (!constants.back())
698 ArrayRef<llvm::Constant *> constantsRef = constants;
701 assert(constantsRef.empty() && "did not consume all elemental constants");
1040 // in-function constants and are thus not supported by getLLVMConstant.
1158 // dangling constants to avoid memory explosion especially for constant
1175 // constants. Erase the constant if the use count becomes zero.
1202 // Try to remove the dangling constants again after all operations are
1215 llvm::dbgs() << numConstantsHit << " new constants hit\n";
1217 << numConstantsErased << " dangling constants erased\n";);